Code Monkey home page Code Monkey logo

Comments (5)

fanliang11 avatar fanliang11 commented on May 24, 2024

#419
ServiceB 能调用 ServiceA吗?

from surging.

 avatar commented on May 24, 2024

from surging.

 avatar commented on May 24, 2024

您说的没大理解 ,我拉的最新代码,ServiceB 以 T GetService() 调用 ServiceA出现上述情况,ServiceB在整个业务中主要充当聚合的作用,ApiGeteWay -> ServiceB ->ServiceA这样的用法有问题?

from surging.

fanliang11 avatar fanliang11 commented on May 24, 2024

我这边项目中未碰上此类问题,可以用性能探查器或者利用WinDbg分析一下那里的问题吗?
建议询问:
1.ApiGeteWay 是引用stage 组件生成的网关吗?ServiceB是不是架设引用在网关的聚合服务
2.如果业务耗时较长,可以改成以下方式,但是这会消耗过多线程切换,这个不适用流媒体处理,更适合业务操作
}
var workerGroup1 = new MultithreadEventLoopGroup();
.ChildHandler(new ActionChannelInitializer(channel =>
{
pipeline.AddLast(new LengthFieldBasedFrameDecoder(int.MaxValue, 0, 4, 0, 4));
pipeline.AddLast(workerGroup1, "HandlerAdapter", new

from surging.

 avatar commented on May 24, 2024

ApiGeteWay 不是引用stage 组件生成的网关,ServiceB也不是架构引用在网关的聚合服务。ServiceB是为了处理复杂的跨服务业务的建立的服务模块,所以我的理解ServiceB从调用过程中是即是客户端又是服务端。非常感谢您的耐心指点,我下来用WinDbg分析下问题。

from surging.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.