resilient-http / resilient.js

Fault tolerant and reactive HTTP client for node.js and browsers
183 stars 13 forks source link

Do you need a registry to use Discovery? #152

Open onsenOnly opened 6 years ago

onsenOnly commented 6 years ago

It always returns 1003 or 1004 when Discovery is used.

onsenOnly commented 6 years ago

Can you provide detailed steps to discover the server and find the return of the service?

h2non commented 6 years ago

High-level algorithm is represented here: https://github.com/resilient-http/resilient.js#how-does-it-work

This is a sample dummy discovery server: https://github.com/resilient-http/resilient-server

This is a sample middleware for Consul based server discovery: https://github.com/h2non/resilient-consul

You have all the details in the code.