You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/FAQs.md
+10-5
Original file line number
Diff line number
Diff line change
@@ -53,7 +53,9 @@ Powertools uses the `url-connection-client` as the default http client. The `url
53
53
With the [announcement](https://aws.amazon.com/blogs/developer/announcing-availability-of-the-aws-crt-http-client-in-the-aws-sdk-for-java-2-x/) of the `aws-crt-client` a new http client has been released, which offers faster SDK startup time and smaller memory footprint.
54
54
55
55
Unfortunately, replacing the `url-connection-client` dependency with the `aws-crt-client` will not immediately improve the lambda cold start performance and memory footprint,
56
-
as the default version of the dependency contains low level libraries for all target runtimes (linux, macos, windows, etc).
56
+
as the default version of the dependency contains low level libraries for all target runtimes (Linux, MacOS, Windows, etc).
57
+
58
+
### Configuring dependencies
57
59
58
60
Using the `aws-crt-client` in your project requires the exclusion of the `url-connection-client` transitive dependency from the powertools dependency.
59
61
@@ -98,21 +100,24 @@ By specifying the specific target runtime, it will avoid other target runtimes t
98
100
</dependencies>
99
101
```
100
102
101
-
After configuring the dependencies, it's required to specify the AWS SDK http client in the code.
102
-
Most modules support a custom sdk client by leveraging the `.withClient()` method on the for instance the Provider singleton:
103
+
### Explicitly set the AWS CRT HTTP Client
104
+
After configuring the dependencies, it's required to explicitly specify the AWS SDK http client.
105
+
Depending on the Powertools module, there is a different way to configure the sdk client.
106
+
107
+
The following example shows how to use the Lambda Powertools Parameters module while leveraging the AWS CRT Client.
0 commit comments