-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing of headers support on UMF messages affecting hydra-router response on legacy environments #87
Comments
@jkyberneees I'm doing some cleanup on Hydra-Router that will make this an easier conversation to have. Specifically, the HydraRouter |
Great, I keep an eye on this. |
@jkyberneees please see if hydra-router 1.3.1 addresses this issue. Also requires that the service themselves using the latest hydra / hydra-express as updates are in makeAPIRequest. |
@cjus Hi Carlos, thanks for taking care of the issue/feature/suggestion. Unfortunately, the feature is not yet working as expected, since hapi services are still not properly routed ;( Best Regards, Rolando |
@jkyberneees the line you referenced checks whether instanceList.length is zero - if that's the case then there are no more service instances to try so a service unavailable response is necessary. The 1.3.1 release was found to have problems - please see if the issue is resolved in hydra-router:1.3.8 |
Hydra stands on the UMF message spec for req/res as well as for real-time messaging. UMF messages does not consider possible HTTP headers except 'Content-Type' and 'Authorization'. On legacy environments, to integrate the hydra can suppose a problem because HTTP headers are heavily used.
As an example, let's analyze the response headers of an app built with hapi.js:
Now the response through the hydra-router:
As a result, the response from the router is unreadable because there are missing headers like content*
In my opinion, limiting the HTTP headers support on the hydra-router->hydra->UMF will limit the capabilities of the hydra ecosystem as well, at least on existing environments who want to get boosted by using hydra.
Here, I would suggest to introduce a "headers" field on the UMF spec, that could be used for communication headers like HTTP, in consequence it would make hydra-* more compatible on legacy environments.
Looking forward to your feedback.
Regards, Rolando.
The text was updated successfully, but these errors were encountered: