Wrapping Up
Node-RED is a visual editor for developing event-based flows. In this chapter, you got Node-RED up and running and configured, and you developed a couple of flows. We explored a number of different Node-RED nodes to create, transform, and consume events.
Using HTTP input and response nodes, we stood up a simple HTTP service. By iteratively adding nodes, you learned how to manipulate the message payload. Using an HTTP request node, we issued an asynchronous request to Elasticsearch, forwarding parts of the result back to the API caller, extracted with a function node.
To handle errors, you used a catch node to guarantee that the API caller gets at least some response, even if things go wrong during any part of the flow. And finally, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access