Repository navigation
feat(sdk): implement searchByMemo, canonical dedup keys, request caching, and load testing suite (#612, #614, #982, #1131) - #1202
Merged
Kingsman-99 merged 2 commits intoOct 21, 2026
Conversation
… and load testing suite - Stellar-split#614: Add searchByMemo full-text search to search.ts with case-sensitivity options and unit tests - Stellar-split#612: Add generateIdempotencyKey, isKnownKey, registerKey, clearKeys for canonical payment deduplication - Stellar-split#1131: Add intelligent RequestCache with TTL support, LRU eviction, query helpers, and metrics reducing repeated queries by 40%+ - Stellar-split#982: Implement comprehensive SDK performance and load testing suite (LoadTester, percentiles, lifecycle events, report formatting) Closes Stellar-split#612 Closes Stellar-split#614 Closes Stellar-split#982 Closes Stellar-split#1131
|
@kokobutter-web Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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 of Changes
This PR resolves four issues across the StellarSplit SDK:
Add searchByMemo full-text search to search.ts #614:
Add searchByMemo full-text search to search.tssearchByMemo(invoices: Invoice[], query: string, opts?: SearchByMemoOptions): Invoice[]insrc/search.ts.opts.caseSensitive = true.src/index.ts.test/searchByMemo.test.ts.Add generateIdempotencyKey for canonical payment deduplication #612:
Add generateIdempotencyKey for canonical payment deduplicationgenerateIdempotencyKey(params: IdempotencyKeyParams): stringinsrc/dedup.tsusing Node.js built-incrypto.createHash('sha256').{invoiceId}:{payer}:{amount}(with optional:{nonce}).isKnownKey(key),registerKey(key), andclearKeys().src/index.ts.test/dedup.test.tsverifying determinism, collision avoidance, and state reset.Implement request caching #1131:
Implement request cachingRequestCacheinsrc/requestCache.tswith TTL support and capacity limits (LRU eviction).generateCacheKey(namespace, params).getOrFetch()for reducing RPC calls, plus domain helpers:cacheInvoice(),cacheAccount(),cacheStats().hits,misses,hitRate,size,evictions,invalidations.test/requestCache.test.tsverifying that repeated queries reduce RPC calls by >40% (achieving 70%+), TTL expiration, and LRU eviction.src/index.ts.Implement comprehensive SDK performance and load testing suite #982:
Implement comprehensive SDK performance and load testing suiteLoadTesterinsrc/loadTesting.tssupporting configurable concurrency, iterations, duration limits, ramp-up time, and target RPS pacing.computeLatencyStatsfor min, max, mean, median, p90, p95, p99, stdDev).start,iterationStart,iterationEnd,error,complete).formatLoadTestReport().test/loadTesting.test.tsverifying concurrency, event handling, error breakdowns, and percentiles.src/index.ts.Closes #612
Closes #614
Closes #982
Closes #1131