+1 for providing the APIs for Instance Event. So we can provide different solutions for user, they just need to set the right configuration for it. If there are lots of instances, they can choose more sophisticated solution such kafka cluster. If there are few service instances, they can just switch to the lightweight solution such as websocket.
Willem Jiang Twitter: willemjiang Weibo: 姜宁willem On Fri, Nov 9, 2018 at 6:40 AM bismy <[email protected]> wrote: > > Are you going to provide a client API for watching instance change? Which > will hide all implementation details of event pushing(whether websocket or > messaging queue). Otherwise it will be quite complicated for client side code > to implement all service center discovery features. > > > I am not taking PUSH as a better way than PULL. In many scenarios, PULL will > give much more reliability. Although PUSH will give some real time > improvement, but we do not find any big problems in PULL yet now. > > > > > > > > > ------------------ 原始邮件 ------------------ > 发件人: "Xiaoliang Tian"<[email protected]>; > 发送时间: 2018年11月7日(星期三) 上午10:34 > 收件人: "dev"<[email protected]>; > > 主题: Re: [DISCUSS]SC Push Instance Event Through Kafka > > > > +1 > for this event pushing, Service center has so many work to do which caused > more load average, user may not even need it. making event pushing as a > optional feature just like java chassis did will improve perf of service > center. > > besides, by using mature community solution will increase the stability and > availability of service center event pushing feature. > > Sure <[email protected]> 于2018年11月7日周三 上午10:23写道: > > > Now, the way sc push instance event to Microservices is based on > > websocket. This will lose events when connection is broken. > > > > > > So, I think we can add a new optional way that push events into the MQ > > like kafka, and Microservices can subscribe it and no longer lose the > > messages from sc. > > > > > > It has another benefit is that sc no need to repeat the same feature keep > > alive millions connections like MQ component.
