Giter Club home page Giter Club logo

Comments (5)

lucas-myx avatar lucas-myx commented on June 12, 2024 2

欢迎试用

from arex-agent-java.

lucas-myx avatar lucas-myx commented on June 12, 2024

支持,并发或异步的场景都支持,随机数的话可以配置动态类方法解决(即录制的随机数和回放环境时保持一致,就能保证回放的分支和录制时一致),但有一点需要确认,你说的任务是job那种定时任务类型吗?arex录制回放的前提是基于spring web、java servlet、dubbo、netty这些组件。

from arex-agent-java.

DeepLJH0001 avatar DeepLJH0001 commented on June 12, 2024

支持,并发或异步的场景都支持,随机数的话可以配置动态类方法解决(即录制的随机数和回放环境时保持一致,就能保证回放的分支和录制时一致),但有一点需要确认,你说的任务是job那种定时任务类型吗?arex录制回放的前提是基于spring web、java servlet、dubbo、netty这些组件。

就是复杂的异步场景,配置动态类方法是如何把MockResult正确匹配到异步线程中,让录制的随机数和回放环境时保持一致呢,因为每个异步线程的执行逻辑可能存在非幂等

from arex-agent-java.

lucas-myx avatar lucas-myx commented on June 12, 2024

你不用担心异步线程切换,arex会帮你传递的,回放的基本逻辑就是根据请求参数去匹配录制的数据,如果请求参数一样就能回放成功(返回录制的数据),只要配置的动态类方法传参和录制时一样即可返回录制时的随机数了
参考:动态类配置

from arex-agent-java.

DeepLJH0001 avatar DeepLJH0001 commented on June 12, 2024

感谢大佬,看到相应代码了,应该是这里把 https://github.com/arextest/arex-agent-java/blob/main/arex-instrumentation-api/src/main/java/io/arex/inst/runtime/match/ReplayMatcher.java#L30

from arex-agent-java.

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.