Skip to content

Samples based on the Node.js messaging client for SAP Event Mesh (formerly Enterprise Messaging in SAP Cloud Platform).

License

Notifications You must be signed in to change notification settings

SAP-samples/event-mesh-client-nodejs-samples

Messaging Client Node.js - Samples for SAP Event Mesh

REUSE status

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 send 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.

Support

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.

License

Copyright (c) 2018 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.