DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Event-Driven Architecture Patterns: Real-World Lessons From IoT Development
  • Event Driven Architecture (EDA) - Optimizer or Complicator
  • Event-Driven Architecture for Software Development: Leverage the Strength of Reactive Systems
  • Building an Event-Driven Architecture Using Kafka

Trending

  • Why Google Data Migration Gets Stuck at 99%: Causes and Proven Fixes
  • Product-Led Software Delivery: Intelligent Platforms for DevOps at Scale
  • The Developer's Guide to Context-Aware AI: When Your Code Documentation Becomes Intelligent
  • Querying Without a Query Language
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Correlating Event-Driven Architecture and API-led Connectivity

Correlating Event-Driven Architecture and API-led Connectivity

Although application components exchanging events can be organized similarly, this is not an intrinsic part of Event-Driven Architecture.

By 
Sadik Ali user avatar
Sadik Ali
·
Mar. 08, 21 · Analysis
Likes (5)
Comment
Save
Tweet
Share
9.0K Views

Join the DZone community and get the full member experience.

Join For Free

API-led connectivity illustrates the three tiers of Experience APIs, Process APIs, and System APIs. 

Although application components exchanging events can be organized similarly, this is not an intrinsic part of Event-Driven Architecture.

API-led connectivity restrains communication models according to these three tiers (essentially top to bottom), whereas application components corresponding events do not theoretically have to adhere to the equivalent communication pattern restrictions.

API implementations typically have well-defined static dependencies on other APIs or backend systems or both). While related contacts may emerge in Event-Driven Architecture at runtime, there are no static dependencies between the application elements exchanging events. Instead, these application components only depend on the exchanged event types, the destinations, and the message broker hosting those destinations. Furthermore, event consumers may change dynamically at any time, thereby dynamically reconfiguring the relationship graph of the application components in an Event-Driven Architecture, without the event producers becoming aware of that change

Experience API > Process API > System API Flowchart

Event-Driven Architecture expects a message broker as an added component of the Technology Architecture, with all application components who want to exchange events having to accept on the same message broker (this is not a strict requirement in some broker architectures).

API-led connectivity and in particular application networks are defined by the API-centric assets published for self-service consumption. The equivalent for Event-Driven Architecture would revolve around target and event types. Fortifying NFRs by applying API policies in Anypoint API Manager on top of existing API implementations has no equivalent in Event-Driven Architecture on Anypoint Platform.

Trading Events Among API Implementations

The compatibility requirement for the 'Customer Self-Service App' product leads to the conclusion that the command-query paths must be 'short-circuited' such that also very recent request submissions, which are not yet exposed by the target system, can be retrieved via the 'PAPI' and 'SAPI.'

One way of architecting this 'short-circuit' is within a proposal not unlike event sourcing on top of CQRS.

  • The 'SAPI,' after transmitting a request submitted to the target system must also publish a 'Request related' event.
  • The 'SAPI,' in addition to retrieving data from the target system, must also consume 'Submitted' events, store them, and include them in the search results it returns to its API clients, specifically the 'PAPI.'
  • This amounts to a non-API communication channel between the 'SAPI' and the target system that follows the general architectural principles of Event-Driven Architecture.

Target System Flowchart


Event-driven architecture Architecture Event application Message broker

Opinions expressed by DZone contributors are their own.

Related

  • Event-Driven Architecture Patterns: Real-World Lessons From IoT Development
  • Event Driven Architecture (EDA) - Optimizer or Complicator
  • Event-Driven Architecture for Software Development: Leverage the Strength of Reactive Systems
  • Building an Event-Driven Architecture Using Kafka

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook