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). |
Beta Was this translation helpful? Give feedback.
-
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/ |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Dependency curationLimit external dependencies. When they are needed, carefully choose the fastest, smallest, safest and well maintained. |
Beta Was this translation helpful? Give feedback.
-
Extended benchmark
|
Beta Was this translation helpful? Give feedback.
-
Building the benchmark inspired me with some ideas for additional features and improvements.
See threads below:
Beta Was this translation helpful? Give feedback.
All reactions