Giter Site home page Giter Site logo

使用方式请教 about lion HOT 2 CLOSED

micyo202 avatar micyo202 commented on May 24, 2024
使用方式请教

from lion.

Comments (2)

micyo202 avatar micyo202 commented on May 24, 2024

gateway 访问哪一层都是可以的,具体取决自身业务情况

当业务拆分粒度较粗或业务比较简单,这时候一个服务就可以完成,无需服务消费者,可以直接请求服务提供者,减少服务间调用的网络传输,性能也会比较好

当业务拆分粒度较细且需要较多服务调用的情况,需要从消费者->提供者这样模式一层一层自上而下的调用,这样减少了单一服务处理业务的复杂度,同时增加了整套系统的容错性,不会因为某一个服务宕掉,导致整套系统无法运行的情况,同样这样会增加服务http调用的网络开销

from lion.

huaxuehuaxue avatar huaxuehuaxue commented on May 24, 2024

看了大佬的解释,省了看3天博客的时间。谢谢大佬。

from lion.

Related Issues (17)

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.