fanliang11 / surging

Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
MIT License
3.24k stars 924 forks source link

一个客户端调用多个微服务,实现分布式计算的问题。 #329

Open xuelang0999 opened 5 years ago

xuelang0999 commented 5 years ago

应用场景: 1.系统包含多个微服务和一个微服务的监视客户端; 2.客户端经常要调用多个微服务,并按照一定的计算顺序,调用微服务接口实现分布式计算。 但存在以下问题: 1.监视客户端首次创建时,效率低; 2.ServiceLocator.Current在客户端经常被使用到,但在上述场景下,应该是每一个客户端都有自己的ServiceLocator。

你好,上述场景如何实现效率最高?Surging实现分布式计算的最佳方案是什么?

fanliang11 commented 5 years ago

没明白你的意思 1.是创建代理远程调用? 2.没明白你的意思,获取注入的模块实例,ServiceLocator.Current就可以了

xuelang0999 commented 5 years ago

你好,谢谢你的回复。有电话吗?我电话联系你。

发件人: fanliang11 notifications@github.com 发送时间: 2019年7月11日 19:35 收件人: dotnetcore/surging surging@noreply.github.com 抄送: xuelang0999 8237982@qq.com; Author author@noreply.github.com 主题: Re: [dotnetcore/surging] 一个客户端调用多个微服务,实现分布式计算的问题。 (#329)

没明白你的意思 1.是创建代理远程调用? 2.没明白你的意思,获取注入的模块实例,ServiceLocator.Current就可以了

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/dotnetcore/surging/issues/329?email_source=notifications&email_token=ADD67QUEKFG5E2YQTD4IQRTP64LGLA5CNFSM4IA7CR5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWNKGA#issuecomment-510448920 , or mute the thread https://github.com/notifications/unsubscribe-auth/ADD67QSQEV34EXJNNKSNQSDP64LGLANCNFSM4IA7CR5A . https://github.com/notifications/beacon/ADD67QTLUSMJZ33UZS5YKCDP64LGLA5CNFSM4IA7CR5KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZWNKGA.gif