Qewd-up without websockets?
Is it possible to configure the Orchestrator to forward incoming REST requests to a microservice using REST calls rather than websocket messages?
We are trying to integrate a non-Qewd service into an existing Qewd-up deployment.
Many thanks. G
To integrate an existing REST-based MicroService into a QEWD-Up architecture, you'd do it indirectly by either:
-
defining an API that is handled directly by the Orchestrator, and whose handler makes a REST request to the foreign MicroService (use the request module which QEWD has already loaded as a dependency)
-
define an API that is handled by a QEWD-Up MicroService, and the handler on that QEWD-Up microservice sends a REST request to the foreign MicroService.
Which option you use is up to you, but adding a QEWD-Up MicroService to provide the interface to the foreign MicroService would provide more flexibility if you want to intercept the flow by using Event Hooks
Option 1 looks like what I'm looking for.
Thanks for your help.