Giter Site home page Giter Site logo

Comments (4)

drewvella-dpg avatar drewvella-dpg commented on August 18, 2024 1

Ok I think I understood what needs to be done! Cheers!

from gatling-amqp-plugin.

ehmkah avatar ehmkah commented on August 18, 2024

I made a MR with an example how you could do it. I hope it will be merged and more important helps :-)

from gatling-amqp-plugin.

drewvella-dpg avatar drewvella-dpg commented on August 18, 2024

Thanks for that! Can you elaborate a bit to make sure I understood correctly?

  // method is called:
    // - for each message which will be sent out
    // - for each message which has been received

Would I need to code the logic to extract the value from the headers and return that value for it to match or also code the part to teach it how to match? ie:

Scenario 1:
Request sent on queue 1 - Matcher kicks in and extracts value from header
Response comes in on queue 2 - Matcher kicks in and extracts value from header plugin automatically matches

Scenario 2:
Request sent on queue 1 - Matcher kicks in and extracts value from header and store the value to correlate it later
Response comes in on queue 2 - Matcher kicks in and extracts value from header custom logic to correlate with list

from gatling-amqp-plugin.

ehmkah avatar ehmkah commented on August 18, 2024

In my opinion scenario 1 is correct. Your method calculates the values from messages and the plugin does the rest. You do not have to store the values somewhere.

Attention: If for some reason the method returns the same ID for two different sent-messages and gatling is waiting for the response of those two messages it happens that one message-mapping is not detected. (To see it return always "1" - its diffuclt to explain)

Maybe a small testsetup which starts a rabbitmq container and runs out of the box would be a good benefit.

from gatling-amqp-plugin.

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.