kashifrazzaqui / vyked

A python asyncio driven service oriented architecture framework
MIT License
52 stars 23 forks source link

services should not have to specify their host and port #117

Open bhanuvrat opened 9 years ago

bhanuvrat commented 9 years ago
  1. Services defining the HOST and PORT where they are going to run is quite counter intuitive.
    • If there is an entity who knows where each service is going to run, whats the point of having a registry?
  2. Registry should detect the IP address from where it gets the registration packet.
    • The HOST address may either be statically specified / detected by socket.gethostbyname(socket.gethostname()) and in both the cases the ip reported may be something behind a NAT and inaccessible for other services / registry itself.
    • And the services can easily listen to all the interfaces by specifying '0.0.0.0' as their host address.

EDIT: After discussion with @nerandell Primary concern is that the service needs to know its own "external" ip address which

@nerandell @kashifrazzaqui views?

kashifrazzaqui commented 9 years ago

I haven't understood what you guys mean. Call me up sometime.