Using the Node.js OJAI Client

Starting with EEP 6.0, you can use the Node.js OJAI client to write HPE Ezmeral Data Fabric Database JSON applications. The client provides you with a lightweight library that supports the OJAI API. You can connect to HPE Ezmeral Data Fabric Database JSON from middleware components, and add, update, and query documents in a HPE Ezmeral Data Fabric Database JSON table.

The client provides you with the following benefits:

  • Easy installation and use
  • Access to HPE Ezmeral Data Fabric Database JSON through the OJAI interface in Node.js
  • An OJAI interface that is tailored to Node.js developers
  • Support for Callback and Promise/Async Node.js asynchronous programming models
  • Support for L3/L4 (transport level) and L7 (application level) proxy load balancing
  • Use of JavaScript to manipulate HPE Ezmeral Data Fabric Database JSON documents

To use the Node.js OJAI client, you must install the MapR Data Access Gateway on your HPE Ezmeral Data Fabric cluster. The gateway serves as a proxy for translating requests between the Node.js client and the HPE Ezmeral Data Fabric cluster. The gateway also performs data processing to keep the client lightweight. See Administering the Data Access Gateway for information about how to administer the gateway and configure load balancing.

IMPORTANT HPE Ezmeral Data Fabric does not support running the Node.js OJAI client in a web browser.

Additional Resources

Examples: https://github.com/mapr-demos/ojai-examples/tree/master/nodejs

Source Code: https://github.com/mapr/maprdb-node-client