Promises to enable clean load test scripts as complexity increases#17
Promises to enable clean load test scripts as complexity increases#17convexset wants to merge 1 commit intometeorhacks:masterfrom
Conversation
|
I like this. |
|
Will merge soon. |
|
cool |
|
Would you be open to including a bit more syntactic sugar in Stuff such as:
I rolled a lot of that into a "quickstart" for https://github.com/convexset/meteor-down-quickstart It's more of a distro. since I see the whole "operations orchestration" thing as useful for load testing, because for me, load testing is all about playing out use cases. Some of this was implemented a long time ago in a meteor package (some of it is ugly, first few months as a JS developer). Perhaps things could be extended into "demographically realistic" load testing to "sample" use cases (with given probabilities). What do you think about including this stuff in |
|
Any update on this? |
|
This looks awesome! |
|
This is great! |
The following changes were made:
Client.prototype)Client.prototype)Client.prototype)Client.prototype)The Promise methods enable more complicated load tests. For instance, for the simple todos example, a good load test would:
This implies a level of asyncrony that vanilla
Meteor.subscribewith callbacks cannot provide for. The same applies for methods. What we need are simple promises. So here is the described load test for Meteor'stodosexample:Don't mind the
LoadTestobject and thecompletemethod. It's part of a "quickstart" I've been goofing around with.