launchdarkly / ios-client-sdk

LaunchDarkly Client-side SDK for iOS (Swift and Obj-C)
https://docs.launchdarkly.com/sdk/client-side/ios
Other
68 stars 82 forks source link

feat: Implement shedding identity queue #343

Closed keelerm84 closed 4 months ago

keelerm84 commented 4 months ago

Previously, customers could queue a boundless limit of identify requests. The SDK would work its way through this FIFO queue, processing all intermediate but unnecessary requests.

With this change, intermediate identify requests will be shed from the processing queue.

NOTE: To preserve backwards compatibility, the original identify method will queue up "unsheddable" tasks which will continue to queue as before. Usage of the new identify method will allow developers to opt-in to this new behavior.

shortcut-integration[bot] commented 4 months ago

This pull request has been linked to Shortcut Story #233103: Add timeout to identify handler.

kinyoklion commented 4 months ago

Can/should the contract tests be updated to use the shedding version?