docs: Content SEO updates (#2990)

* update yaml frontmatter format

* update abstract document

* update abstract factory

* use the new pattern template

* acyclic visitor seo

* adapter seo

* ambassador seo

* acl seo

* aaa seo

* async method invocation seo

* balking seo

* bridge seo

* builder seo

* business delegate and bytecode seo

* caching seo

* callback seo

* chain seo

* update headings

* circuit breaker seo

* client session + collecting parameter seo

* collection pipeline seo

* combinator SEO

* command seo

* cqrs seo

* commander seo

* component seo

* composite seo

* composite entity seo

* composite view seo

* context object seo

* converter seo

* crtp seo

* currying seo

* dao seo

* data bus seo

* data locality seo

* data mapper seo

* dto seo

* decorator seo

* delegation seo

* di seo

* dirty flag seo

* domain model seo

* double buffer seo

* double checked locking seo

* double dispatch seo

* dynamic proxy seo

* event aggregator seo

* event-based asynchronous seo

* eda seo

* event queue seo

* event sourcing seo

* execute around seo

* extension objects seo

* facade seo

* factory seo

* factory kit seo

* factory method seo

* fanout/fanin seo

* feature toggle seo

* filterer seo

* fluent interface seo

* flux seo

* flyweight seo

* front controller seo

* function composition seo

* game loop seo

* gateway seo

* guarded suspension seo

* half-sync/half-async seo

* health check seo

* hexagonal seo

* identity map seo

* intercepting filter seo

* interpreter seo

* iterator seo

* layers seo

* lazy loading seo

* leader election seo

* leader/followers seo

* lockable object seo

* rename and add seo for marker interface

* master-worker seo

* mediator seo

* memento seo

* metadata mapping seo

* microservice aggregator seo

* api gw seo

* microservices log aggregration seo

* mvc seo

* mvi seo

* mvp seo

* mvvm seo

* monad seo

* monitor seo

* monostate seo

* multiton seo

* mute idiom seo

* naked objects & notification seo

* null object seo

* object mother seo

* object pool seo

* observer seo

* optimistic locking seo

* page controller seo

* page object seo

* parameter object seo

* partial response seo

* pipeline seo

* poison pill seo

* presentation model seo

* private class data seo

* producer-consumer seo

* promise seo

* property seo

* prototype seo

* proxy seo

* queue-based load leveling seo

* reactor seo

* registry seo

* repository seo

* RAII seo

* retry seo

* role object seo

* saga seo

* separated interface seo

* serialized entity seo

* serialized lob seo

* servant seo

* server session seo

* service layer seo

* service locator seo

* service to worker seo

* sharding seo

* single table inheritance seo

* singleton seo

* spatial partition seo

* special case seo

* specification seo

* state seo

* step builder seo

* strangler seo

* strategy seo

* subclass sandbox seo

* table module seo

* template method seo

* throttling seo

* tolerant reader seo

* trampoline seo

* transaction script seo

* twin seo

* type object seo

* unit of work seo

* update method seo

* value object seo

* version number seo

* virtual proxy seo

* visitor seo

* seo enhancements

* seo improvements

* SEO enhancements

* SEO improvements

* SEO additions

* SEO improvements

* more SEO improvements

* rename hexagonal + SEO improvements

* SEO improvements

* more SEO stuff

* SEO improvements

* SEO optimizations

* SEO enhancements

* enchance SEO

* improve SEO

* SEO improvements

* update headers
This commit is contained in:
Ilkka Seppälä
2024-06-08 19:54:44 +03:00
committed by GitHub
parent cb946c0cdc
commit 6cd2d0353a
219 changed files with 3308 additions and 2819 deletions
+20 -18
View File
@@ -1,16 +1,18 @@
---
title: Event-Driven Architecture
title: "Event-Driven Architecture Pattern in Java: Building Responsive and Scalable Java Systems"
shortTitle: Event-Driven Architecture
description: "Discover comprehensive guides on Event-Driven Architecture patterns with practical Java examples. Learn to implement effective event-driven systems in your projects."
category: Architectural
language: en
tag:
- Asynchronous
- Decoupling
- Enterprise patterns
- Event-driven
- Messaging
- Publish/subscribe
- Reactive
- Scalability
- Asynchronous
- Decoupling
- Enterprise patterns
- Event-driven
- Messaging
- Publish/subscribe
- Reactive
- Scalability
---
## Also known as
@@ -18,11 +20,11 @@ tag:
* Event-Driven System
* Event-Based Architecture
## Intent
## Intent of Event-Driven Architecture Design Pattern
Event-Driven Architecture (EDA) is designed to orchestrate behavior around the production, detection, consumption of, and reaction to events. This architecture enables highly decoupled, scalable, and dynamic interconnections between event producers and consumers.
## Explanation
## Detailed Explanation of Event-Driven Architecture Pattern with Real-World Examples
Real-world example
@@ -36,7 +38,7 @@ Wikipedia says
> Event-driven architecture (EDA) is a software architecture paradigm concerning the production and detection of events.
**Programmatic Example**
## Programmatic Example of Event-Driven Architecture in Java
The Event-Driven Architecture (EDA) pattern in this module is implemented using several key classes and concepts:
@@ -151,11 +153,11 @@ Running the example produces the following console output:
This example demonstrates the Event-Driven Architecture pattern, where the occurrence of events drives the flow of the program. The system is designed to respond to events as they occur, which allows for a high degree of flexibility and decoupling between components.
## Class diagram
## Detailed Explanation of Event-Driven Architecture Pattern with Real-World Examples
![Event-Driven Architecture](./etc/eda.png "Event-Driven Architecture")
## Applicability
## When to Use the Event-Driven Architecture Pattern in Java
Use an Event-driven architecture when
@@ -164,7 +166,7 @@ Use an Event-driven architecture when
* Systems needing to efficiently handle high throughput and sporadic loads.
* When integrating with microservices to enhance agility and scalability.
## Known Uses
## Real-World Applications of Event-Driven Architecture Pattern in Java
* Real-time data processing applications.
* Complex event processing systems in finance, such as stock trading platforms.
@@ -173,7 +175,7 @@ Use an Event-driven architecture when
* Amazon's AWS Lambda, lets you execute code in response to events such as changes to Amazon S3 buckets, updates to an Amazon DynamoDB table, or custom events generated by your applications or devices. (https://aws.amazon.com/lambda)
* MySQL runs triggers based on events such as inserts and update events happening on database tables.
## Consequences
## Benefits and Trade-offs of Event-Driven Architecture Pattern
Benefits:
@@ -187,12 +189,12 @@ Trade-offs:
* Dependency on Messaging Systems: Heavily relies on robust messaging infrastructures.
* Event Consistency: Requires careful design to handle event ordering and consistency.
## Related Patterns
## Related Java Design Patterns
* Microservices Architecture: Often used together with EDA to enhance agility and scalability.
* Publish/Subscribe: A common pattern used within EDA for messaging between event producers and consumers.
## Credits
## References and Credits
* [Patterns of Enterprise Application Architecture](https://amzn.to/3Q3vBki)
* [Enterprise Integration Patterns: Designing, Building, and Deploying Messaging Solutions](https://amzn.to/49Aljz0)