Additional features and improvements #32
Replies: 5 comments 1 reply
Optimize HTTP requestsThe SDK sends HTTP requests to the AWS API to perform operations. To optimize performance, we should consider using techniques such as HTTP connection pooling and persistent connections where applicable. AWS SDK offers opt-in solutions to connection pooling (connection reuse environment variable) and persistent connections (when declaring clients outside the handler). |
Handle API retries gracefullyAWS SDKs handle error retries with exponential backoff and jitter https://docs.aws.amazon.com/general/latest/gr/api-retries.html, https://aws.amazon.com/fr/blogs/architecture/exponential-backoff-and-jitter/ |
Use memoizationThe SDK includes several utility functions, such as resolveEndpoint() and resolveXAmzTarget(), that could benefit from memoization. Memoization can help improve the performance of these functions by caching the results of previous calls and returning them for subsequent calls with the same arguments. |
Dependency curationLimit external dependencies. When they are needed, carefully choose the fastest, smallest, safest and well maintained. |
Extended benchmark
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Building the benchmark inspired me with some ideas for additional features and improvements.
See threads below:
All reactions