Earlier nosotros convey already learnt nearly around basic things nearly synchronizing timer in addition to how to role it on controller level on software charge attempt out innovation inwards my previous post. Now hither nosotros volition hash out in addition to larn how to role synchronizing timer on asking score inwards software charge attempt out innovation in addition to how it volition works. Let's sympathise alongside example.
Using Synchronizing Timer On Request Level
I convey attempt out innovation alongside two thread groups -> Thread Group - i in addition to Thread Group - 2. Each convey iv unlike requests. In Thread Group - 1, I convey added synchronizing timer nether "My Orders" asking equally shown inwards bellow image. Thread Group - two don't convey whatever synchronizing timer.
Both Thread Groups are configured alongside same configuration equally described bellow.
- Number of Threads = 4
- Ramp-up Period = 1
- Loop Count = 1
Synchronizing timer which is nether "My Orders" asking has bellow given configuration.
- Number of Simultaneous Users to Group past times = 4
- Timeout inwards milliseconds = 0.
As you lot tin see, We convey added synchronizing timer nether "My Orders" asking of software spider web application then synchronizing timer volition strength to block threads until attain iv thread reached on "My Orders" asking of software spider web application. When iv threads volition attain on "My Orders" request, all iv threads volition endure released immediately.
Thread Group - two is added to compare results.
Run higher upwardly attempt out innovation in addition to persuasion effect inwards tabular array for Thread Group - 1. It volition looks similar bellow.
In effect you lot tin run across that all the iv requests of "My Orders" are executed on same fourth dimension equally nosotros convey added synchronizing timer nether "My Orders" request. Other requests are executed equally per their ain time.
Also you lot volition non discovery whatever fourth dimension sync inwards effect of Thread Group - 2.
This way, You tin use Synchronizing Timer on asking score inwards your software charge attempt out innovation to generate charge on specific request.