docs: Add the evaluateBatch command and evaluate-batch capability - #446
Draft
kinyoklion wants to merge 1 commit into
Draft
docs: Add the evaluateBatch command and evaluate-batch capability#446kinyoklion wants to merge 1 commit into
kinyoklion wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
evaluateBatchcommand and theevaluate-batchcapability to the test service specification.evaluateBatchevaluates a list of flags against one context for a given number of passes inside the test service process, and reports timing for every evaluation. It exists for performance measurement: driving evaluations one HTTP request at a time measures the HTTP stack rather than the SDK, since a round trip costs far more than an evaluation. The SDK stress tester (launchdarkly/sdk-stress-tester) is the first consumer.The contract:
evaluate: each element ofevaluationscarriesflagKey,valueType, anddefaultValue, with one sharedcontext(oruser) and aniterationscount of at least 1. The context matrix in the stress tester is covered by issuing one batch per context.valueplustotalNs,minNs, andmaxNsacross passes, and a whole-batchdurationNs. Nanosecond integers are used throughout because every SDK runtime exposes a monotonic nanosecond clock and single evaluations are microseconds.evaluate-batch.Deliberately not included in this revision: a
detailoption and a concurrency parameter. Either can be added later as optional request properties without breaking this shape.No harness code changes are included. The prototype implementations in five SDK test services are local and will be updated to this contract before they are proposed.