keijack / python-eureka-client

A eureka client written in python. Support registering your python component to Eureka Server, as well as calling remote services by pulling the the Eureka registry.
MIT License
184 stars 43 forks source link

Use an async http client lib #4

Closed tuttleBen closed 5 years ago

tuttleBen commented 5 years ago

I would like to use aiohttp for making http calls. Either having a way to extract out the network location or a way to inject my own function to make the http call. However, the do_service would need to be async to make it work.

keijack commented 5 years ago

I've added a walk_nodes function, and also provide a async version, please upgrade to v0.4.0 to use it. You can read the document to find out how to use it. If you have any questions, you can comment this issue or send me email keijack.wu@gmail.com, enjoy. @tuttleBen