Client Libraries updated to include RateLimiter #3172
jenilew
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All,
We have updated the C# and Java client libraries (sellingpartner-api-aa-csharp and sellingpartner-api-aa-java) with a RateLimiter interface.
RateLimiter is used on the client side to restrict the rate at which requests are made and is recommended to use to regulate the rate that calls happen.
RateLimitConfiguration
acceptsrateLimitPermit
(rate at which requests are made) andwaitTimeOutInMilliSeconds
(elapsed time when requests time out).Swagger Codegen template files for Java and C# have been updated to add rate limiter functionality in the swagger code-generated libraries.
Java Example
C# Example
Note: When implementing in C#, make sure to add a reference to RateLimiter.2.2.0 from nuget.
Which marketplaces are affected?
All marketplaces are affected.
Who is affected?
Developers who want to restrict the rate at which requests are made from their apps are affected.
What action is required?
Developers may use the updated client libraries to implement RateLimiter for their apps.
Best regards,
The Selling Partner API team
Beta Was this translation helpful? Give feedback.
All reactions