qewd icon indicating copy to clipboard operation
qewd copied to clipboard

Qewd-up without websockets?

Open grantforrester-nes opened this issue 6 years ago • 2 comments

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

grantforrester-nes avatar Jan 16 '20 09:01 grantforrester-nes

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

robtweed avatar Jan 16 '20 10:01 robtweed

Option 1 looks like what I'm looking for.

Thanks for your help.

grantforrester-nes avatar Jan 22 '20 16:01 grantforrester-nes