Cloud Pak for Integration

 View Only

Leveraging the integration of IBM Event Endpoint Management with IBM API Connect: a guide to interacting with events in a multi-form API management portal

By Adam Smith posted 15 days ago

  

The integration of IBM Event Endpoint Management with IBM API Connect is a powerful approach to managing APIs and Kafka events.  

In this article, we will provide a comprehensive overview of how an organization can implement the integration of Event Endpoint Management and API Connect. We will guide you through a detailed walkthrough, outlining the specific steps involved in this integration and highlighting best practices to maximize its benefits for enhanced operational efficiency and responsiveness. 

API and Event Management 

You may be familiar with API Connects capability for design, developing and testing APIs. The API Manager, a component of API Connect, can be used to facilitate promotion and tracking of APIs that are packaged in products and plans. An API provider within an organization is responsible for moving products through their lifecycle, managing the availability and visibility of APIs and their plans. A variety of APIs can be added to the API Manager including RESTful, SOAP and GraphQL, for example. In addition, API Connect also supports AsyncAPI, which is a specification for defining asynchronous APIs. AsyncAPI is the standard used for describing event-driven architectures where communication occurs through event streams or message queues, rather than traditional request-response models. 

Multi-form API management systems are invaluable for organizations as they enable seamless integration of diverse API types. Having a unified platform to manage and provide governance of APIs and events enhance operational efficiency as well as many other key benefits that we discuss in Navigating the future of API and event management with IBM Event Endpoint Management & IBM API Connect

 The API Connect developer portal: an integrated web-based platform where application developers and API consumers can discover, explore, socialize and subscribe to your APIs.

The API Connect developer portal: an integrated web-based platform where application developers and API consumers can discover, explore, socialize and subscribe to your APIs.

Integration from zero to hero

Before you dive into using the integration yourself, this post will provide you with a quick overview of what to expect, giving you a taste of the features and benefits of IBM’s solution to multi-form API management. This guide will not cover the configuration steps however, you can find the instructions in the documentation. 

 

To get started, we need to set up our Event Endpoint Management system with some event sources that we will use to share AsyncAPIs with our instance of API Connect later on. Event Endpoint Management v11.3.0 and API Connect v10.0.8.0 was used in this integration example at the time of writing.

Step 1: Define event sources in Event Endpoint Management 


Event source is the term used to describe a topic when it has been added to Event Endpoint Management. You need to first define event sources in Event Endpoint Management by identifying which Kafka topics from your Kafka cluster are needing to be managed. In this walkthrough, we will be using an IBM Event Streams Kafka cluster to add topics from. In Event Endpoint Management, event sources will act as the entry points for applications to consume or produce messages. You can view event sources in the ‘Manage topics’ page 

The Event Endpoint Management 'Manage topics' page, where an admin creates event sources to describe a topic once it has been added. 

The Event Endpoint Management 'Manage topics' page, where an admin creates event sources to describe a topic once it has been added. 

Step 2: Manage event sources 


Event sources can be categorized as either consume-enabled or produce-enabled when registered with Event Endpoint Management, depending on how you plan the applications will interact with them. You can manage these event sources to ensure that they interact with the correct types of Kafka clusters. New event sources are added by clicking the `Add topic` button and following the flow to determine the type of interaction and provide basic topic details from the Kafka cluster such as name, partition and replica information. You can be update and add additional information such as tags, which can help describe the content of the event source through keywords and schema details. 

Additional information, such as: descriptions, tags, schema, sample messages, about the kafka topic can be documented in the event source. 

Additional information, such as: descriptions, tags, schema, sample messages, about the kafka topic can be documented in the event source. 

Step 3: Publish options to Event Endpoint Management catalog 


Once you have defined your event sources, you need to publish an option for the event source to the Event Endpoint Management catalog. This action makes the event endpoints viewable to developers in the organization, facilitating the reuse of events.  

Options can be created for an event source, which enables the admin to control how the topic's stream of events are made available in the catalog.

Options can be created for an event source, which enables the admin to control how the topic's stream of events are made available in the catalog.

Step 4: Implement governance controls 


Event sources offer the ability to implement controls on options, such as approval, which allows you to gain greater management over how event source data is presented. This governance ensures that only authorized users can interact with the specific event data. The approval control can be applied to both consume and produce-enabled event sources. However, in the integration with API Connect, note that the approval control must not be added to the option as this level of management will be managed in API Connect. Other controls such as redaction, schema filtering and schema enforcement can be applied to options that will be discoverable in API Connect. For more details about the how the different controls can be used, refer to the documentation.

Step 5: Use API Manager to add AsyncAPIs 


With the power of the integration, you can create new AsyncAPIs in the API Manager without needing to navigate back to the Event Endpoint Management UI. You can view all discoverable event endpoints and publish them to products directly. This enables a smoother workflow and accelerates the API development process, enabling the APIs to be discoverable by a developer quicker

Event Endpoint Management provides the capability to discover, describe and manage event endpoints as an AsyncAPI, which can then be imported into API Connect. The API Manager is able to discover the published options from Event Endpoint Management without the need to go back and forth between platforms. 

Event Endpoint Management provides the capability to discover, describe and manage event endpoints as an AsyncAPI, which can then be imported into API Connect. The API Manager is able to discover the published options from Event Endpoint Management without the need to go back and forth between platforms. 

Once an AsyncAPI has been imported to the API Manager from Event Endpoint Management, an API administrator can manage their events alongside their RESTful APIs in one unified platform. 

Once an AsyncAPI has been imported to the API Manager from Event Endpoint Management, an API administrator can manage their events alongside their RESTful APIs in one unified platform. 

Step 6: Publishing API to a product in API Manager

Once you have the AsyncAPI registered with API Manager, you can configure policies for security, rate limiting and logging to ensure governance. Next, you need to associate the API with a product, which serves as a container for one or more APIs bundled together. This simplifies access to the relevant APIs for developers within your organization. After you have configured your product from a selection of plans, added documentation and any required approval workflows, it is published to the developer portal. This makes the API accessible to registered developers, who can generate the necessary credentials for their applications that require AsyncAPIs that are integrated from Event Endpoint Management.  

The developer portal catalogs all published APIs and events for your organization's developers to discover and interact with. 

The developer portal catalogs all published APIs and events for your organization's developers to discover and interact with. 

Step 7: Generate access credentials 


In the developer portal, a developer from your organization can browse through an array of available products, which can be identified by descriptions and organized base on specific functionality and services. For example, in our case we have two products: Produce-events-to-EEM and Consume-events-from-EEM, which are grouped based on the type of interaction that a developer would have with the event endpoint. When the developer discovers a product that includes an API which they want to use, they can review details about the APIs in the product. 

Once the developer has reviewed the details and is ready to begin interacting with the API, the developer can proceed to generate access credentials within the portal. This process typically involves selecting the appropriate access plan, after which the developer is provided with an API key or token that enables secure interactions with the API and its event data.  

A developer can 'Get Access' to the APIs and events they want in the developer portal.

A developer can 'Get Access' to the APIs and events they want in the developer portal. 

Step 8: Integrate APIs and Events 


With access credentials in hand, developers can now integrate their APIs and events into applications, leveraging the streamlined access to event-driven data managed by Event Endpoint Management. The developer will need to implement these credentials and other properties into their applications, which can all be referenced in the overview of the API. If you are looking at starting a new application, you can find sample code snippets that help the developer get started. 
With the access credentials generated and the integration successfully established, the developer is now fully equipped to consume and produce events using the integrated APIs, unlocking the potential to create dynamic and responsive applications powered by real time data from Event Endpoint Management.

Sample code is provided in both API Connect and Event Endpoint Management, in order to help you get started with integrating your APIs and events into your applications.

Sample code is provided in both API Connect and Event Endpoint Management, in order to help you get started with integrating your APIs and events into your applications.

Final thoughts

 
The integration between IBM Event Endpoint Management and IBM API Connect allows organizations to efficiently manage their APIs and event streams in a unified environment. By following these steps, teams can harness the full potential of event-driven architectures and API-centric data processing, leading to improved operational efficiency and enhanced user experiences. If you are looking to find out more about how Event Endpoint Management can be beneficial for your organization, you can find out more through the links below.  

Learn more about Event Endpoint Management
Check out why your event-driven architecture needs advanced event governance

0 comments
17 views

Permalink