Registering service with multiple interfaces/ports

98 views
Skip to first unread message

Peter Modzelewski

unread,
Sep 6, 2014, 3:42:32 PM9/6/14
to eureka_...@googlegroups.com
Hi - I have services, that have multiple interfaces
(For example Thrift served on port 1024, REST served on port 1025, ... )

So I would like to register in eureka MY-SERVICE-THRIFT on port 1024 MY-SERVICE-REST on port 1025 and so on... 

Now using eureka client:
If I understand correctly DiscoveryManager is singleton right? And when calling initComponent I can provide only one configuration, so only one vipAddress/port
Is there a way to bypass that without rewriting/changing eureka client?

ivar...@gmail.com

unread,
Feb 12, 2015, 8:09:31 AM2/12/15
to eureka_...@googlegroups.com
What about using instance metadata for this?
Reply all
Reply to author
Forward
0 new messages