Giter VIP home page Giter VIP logo

Comments (4)

panjf2000 avatar panjf2000 commented on July 1, 2024

gnet 目前还不支持 tls,如果你需要的话可以通过 proxy 来引入 tls,可以试试 caddy, traefik 或者 envoy.

from gnet.

451008604 avatar 451008604 commented on July 1, 2024

哦哦,好的感谢。

其实有考虑过代理的方案,最开始的想法是通过 nginx 做代理后再访问 app

有点担忧的是采用代理之后,是不是会对 gnet 的性能产生影响。有点吕布骑驴的感觉了。。。

(对系统底层的调用了解不深😂)

from gnet.

panjf2000 avatar panjf2000 commented on July 1, 2024

实际上在现在的微服务架构下,gateway 和 load balancer 已经是不可或缺的组件,把鉴权、限流、熔断和负载均衡等基础功能统一移到网关/代理服务器上,tls 也是,这样真正的后端服务就不再需要自己去实现所有这些基础功能,可以专注于业务逻辑的开发。因此,虽然支持 tls 在 gnet 的未来的 roadmap 里,但不算是一个优先级很高的特性。

引入 gateway 或者 load balancer 理论上来说肯定会有一点性能损耗,但也不是绝对的,当你的服务规模大到一定程度之后,把基础功能和业务逻辑解耦的架构可以更好地做计算资源分离,实际性能未必会比单体服务低。

供参考。

from gnet.

451008604 avatar 451008604 commented on July 1, 2024

哈哈哈哈,好的好的。
确认 gnet 现在不支持 tls 就 ok 。这样就直接采用代理服务方案了👍

Thank you very much~

from gnet.

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.