SAP-samples/event-mesh-client-nodejs-samples
Node.js samples and documentation for SAP Event MeshEvent MeshManaged queues and topics over AMQP, MQTT and a REST gateway, and the bus SAP's own applications publish their business events to.sap official, btp's AMQP 1.0 messaging client, from a basic send/receive pair to a full event simulator.
SAP Event MeshEvent MeshManaged queues and topics over AMQP, MQTT and a REST gateway, and the bus SAP's own applications publish their business events to.sap official, btp's Node.js client ships as @sap/xb-msg-amqp-v100, and this repository is where its documentation and worked samples live: xb-msg-amqp-v100-doc documents the client and a server for AMQP 1.0, alongside a basic sample. xb-msg-amqp-v100-samples runs locally as plain Node.js, outside SAP BTP, with a consumer.js and producer.js pair configured from config/cf-sample-config.js. event-simulator goes further: an SAP BTP deployment that emits events as messages over SAP Event Mesh and logs what it consumes on the other end. It stops at these three; running any of them still needs an Event Mesh service instance on SAP BTP.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerademvuralContributes to this
In the atlas: contributes to 2@ademvuralAjinkya PatilContributes to this
In the atlas: contributes to 112@ajinkyapatil8190Brian BernardContributes to this
In the atlas: contributes to 64@btbernardlinastehleContributes to this
In the atlas: contributes to 2@linastehleMichael BolzContributes to this
In the atlas: contributes to 2@mibo5 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
As a sample
- Form
- Code snippets
Connections
Emitting and consuming business events across systems through brokers
Download
README
quoted from SAP-samples/event-mesh-client-nodejs-samples under Apache-2.0, readMessaging Client Node.js - Samples for SAP Event Mesh
Note
The SAP Cloud Platform Enterprise Messaging service has been renamed to SAP Event Mesh - find more information in this blog article
Description
SAP Event Mesh provides a cloud-based messaging framework for the development of decoupled and resilient services and integration flows (using SAP Cloud Integration) to support asynchronous communication principles. Direct integration with SAP S/4HANA Business Event Handling allows efficient development of innovative and scaling extensions.
This repository provides documentation and samples of how to use the Messaging Client (Node.js) for messaging via SAP Event Mesh in the Cloud Foundry environment. Details on each sample application and the covered scenario are described in the table List of content and sample projects below.
For more details of SAP Event Mesh take a look at the Event Mesh - Messaging Clients landing page and SAP Event Mesh on SAP Help portal.
This repository provides samples of how to use the Messaging Client (Node.js) for messaging via SAP Event Mesh in the Cloud Foundry environment.
List of content and sample projects
| Sample/Content | Scenario | Scenario Description |
|---|---|---|
| xb-msg-amqp-v100-doc | Node.js Messaging Client documentation (includes basic sample) | Documentation and related samples which shows hot this library provides a messaging client as well as classes to realize a server for AMQP 1.0 |
| xb-msg-amqp-v100-samples | Basic Messaging Sample which runs locally | This sample demonstrates how each application (plain Node.js, non SAP BTP) can use the Event Mesh Client to send and receive messages via SAP Event Mesh. Therefore the messaging sample consists of a consumer.js and a producer.js which provides the corresponding functionality for send/receive (and the config/cf-sample-config.js to configure the sample) |
| event-simulator | Event Simulator for SAP BTP deployment | The Event Simulator application demonstrates a scenario where events are emitted and sent as messages via SAP Event Mesh which were consumed and further processed (i.e. logged via console). Therefore the messaging sample consists of a main.js which provides the corresponding functionality and start the simulation (and a config.js to configure the sample) |
Requirements
To run the samples a running Event Mesh Service @SAP BTP is required.
Further necessary configuration and settings are dependent on the specific sample and are documented there.
Download and Installation
To download and install the samples just clone this repository via git clone
For details on how to configure and run the samples please take a look into the README in the corresponding samples directory.
Contributing
This project is 'as-is' with no support, no changes being made.
You are welcome to make changes to improve it but we are not available for questions or support of any kind.
Licensing
Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved.
This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-event-mesh-client-nodejs-samples- JSON
- /artifacts/sap-samples-event-mesh-client-nodejs-samples.json
- MCP
- Connecting an agent