dashersw / cote

A Node.js library for building zero-configuration microservices.
http://cote.js.org
MIT License
2.35k stars 187 forks source link

more portable service discovery #220

Open beenotung opened 4 years ago

beenotung commented 4 years ago

From the talk "Microservices made easy with cote.js - lecture by Armagan Amcalar - Code Europe Autumn 2017", it seems cote relays on broadcast and anycast to do service discovery, that may require configuration on the router, which may not be preferable in some environment.

Would it be a good idea to do service discovery using p2p network running DHT in similar way like how discovery-swarm works? (Which connect to the DAT DHT network by default but can be configured to use other network as well)

dashersw commented 4 years ago

This would be interesting. Currently cote supports an alternative discovery mechanism using redis, and I believe any other solution could be implemented in a similar way.