Giter VIP home page Giter VIP logo

Comments (3)

jreyesr avatar jreyesr commented on September 20, 2024

Hello @dotJson! Thank you! Yes, this was absolutely inspired by Postman's Runner, which is more geared towards repeatedly calling an API for testing. I focused more on extracting data from those calls, which in Postman is not easy.

Regarding the rate limit: Yes, it should absolutely be possible! In fact, I toyed with the idea of providing a Serial/Parallel selection (so that you could send requests in parallel if the API didn't mind). That would probably have come with more configuration: a "# of threads" config for the parallel mode, and a "delay between requests" config for serial mode. It turned out that such a "parallel mode" is not amenable to the hacks that I had to use to make the plugin work, so that entire part got shelved.

That being said, it's definitely possible to add a configuration option for a "delay between requests". Unless Insomnia doesn't allow plugins to sleep for X milliseconds, that is. I don't see why it wouldn't be allowed, though.

Also, I quite like the idea of adding a delay config. Since I have free time these days, I'll get to work on this right away.

Finally, thank you so much for checking out the plugin, and also for requesting new functionality!

from insomnia-plugin-batch-requests.

dotJson avatar dotJson commented on September 20, 2024

Dude that's awesome. I hope it is an easy add. The use case for me is a CSV with hundreds of (potentially more) lines to POST. The endpoint will puke on parallel calls so its serial, and slow. We usually set it to 2 seconds and let it burn away. Also, it's an XML body where I put the variables instead of the URL. Works well.

from insomnia-plugin-batch-requests.

jreyesr avatar jreyesr commented on September 20, 2024

Hey there @dotJson! Just wanted to let you know that v1.1.0 has been released, and it contains this functionality. You should be able to update your installation... or maybe uninstall and reinstall it? I haven't seen a button to update a plugin in Insomnia, and couldn't find anything in the docs either.

In any case, currently you probably have v1.0.1. Once you install v1.1.0, there should be a new section in the Batch Requests dialog, just above the progress bar. You can set the delay in 100-millisecond steps. I was tempted to go for 1-second steps, as you requested and as Insomnia does for the Repeat on Interval functionality, but I ultimately settled on a bit more granularity, without going into full millisecond-level precision as Postman does.

image

If you find any bugs or otherwise wish to provide any feedback, you're more than welcome. Otherwise, thank you for the request, it was a fun exercise!

from insomnia-plugin-batch-requests.

Related Issues (5)

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.