Giter Club home page Giter Club logo

Comments (2)

Aresxue avatar Aresxue commented on June 2, 2024

127.0.0.1 为啥要限制访问,本地禁止http自调用?这个问题可以通过自己选取本地网卡的ip去解决,也可以自己做一个简单的服务发现去选举,但做一个配置项去配置是没必要的(容器化下ip是会变和复用的)。
至于http、rpc基于tcp去做统一实现感觉完全没必要还可能引发一些未知的问题,往往回放除了发送请求还有其它的自定义逻辑。

from jvm-sandbox-repeater.

suncairong163 avatar suncairong163 commented on June 2, 2024

127.0.0.1 为啥要限制访问,本地禁止http自调用?这个问题可以通过自己选取本地网卡的ip去解决,也可以自己做一个简单的服务发现去选举,但做一个配置项去配置是没必要的(容器化下ip是会变和复用的)。 至于http、rpc基于tcp去做统一实现感觉完全没必要还可能引发一些未知的问题,往往回放除了发送请求还有其它的自定义逻辑。

1.应用本身是可以指定网卡进行启动的(指定ip),这种情况下除了指定的IP,其他的IP,还是127.0.0.1是不通的
2.至于为什么同一实现,因为所有的报文发送,只要是基于t c p的就可以统一以文本形式发送,
3.编辑自定义报文,我上面已经说了这种场景,这跟发报文没关系,我说的同一实现,不需要各种客户端,只需要文本格式报文就OK
4.IP为什么支持自定义,就是因为会变所以才支持自定义,因为流量是离线重放,之前的ip,和当前的ip可能不一样,也是场景适配问题
5.功能设计是需要适配场景的,易用,通用适配,这才是功能设计方向

from jvm-sandbox-repeater.

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.