Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Latest commit

 

History

History
34 lines (21 loc) · 963 Bytes

File metadata and controls

34 lines (21 loc) · 963 Bytes

Messaging Work Queue Example for Node.js

Greenkeeper badge

https://access.redhat.com/documentation/en-us/red_hat_build_of_node.js/

Purpose

This example application demonstrates how to dispatch tasks to a scalable set of worker processes using a message queue. It uses the AMQP 1.0 message protocol to send and receive messages.

Prerequisites

  • The user has access to an OpenShift instance and is logged in.

  • The user has selected a project in which the frontend and backend processes will be deployed.

Deployment

Run the following commands to configure and deploy the applications.

$ oc create -f service.amqp.yaml

$ ./start-openshift

Modules

The frontend module serves the web interface and communicates with workers in the backend.

The worker module implements the worker service in the backend.