Skip to content

Conversation

@marcinczeczko
Copy link
Contributor

  • Refactored configuration structure - broken down config into dynamodb, AWS, SDK & HTTP client groups
  • Added config of TLS Managers for sync/async clients
  • Added config of HTTP Proxy for async client
  • Added support for SDK client interceptors

@marcinczeczko
Copy link
Contributor Author

@gsmet - I updated the extension due to the new config options available in latest AWS SDK: proxy for async, tlsmanagers, interceptors.

/**
* Enable HTTP proxy
*/
@ConfigItem(defaultValue = "false")
Copy link
Member

@machi1990 machi1990 Sep 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

defaultValue is not needed, boolean config item default to false

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left it to let the doc generator to show default value

@geoand geoand requested a review from cescoffier September 6, 2019 19:49
@gsmet gsmet added this to the 0.22.0 milestone Sep 9, 2019
@gsmet gsmet self-assigned this Sep 9, 2019
* AWS SDK specific configurations
*/
@ConfigGroup
public class SdkConfig {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not entirely sure about this specific SDK config with the sdk namespace. I mean you are configuring the base elements of the clients so having them at the root of the config would make sense to me.

WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed. Additionally migrated to the config docs automatically generated.

@marcinczeczko marcinczeczko force-pushed the dynamodb-more-configs branch 2 times, most recently from 7a2a808 to d8b74e9 Compare September 13, 2019 08:29
|`aws-java-sdk-NettyEventLoop`
|The thread name prefix for threads created by this thread factory used by event loop group. The prefix will be appended with a number unique to the thread factory and a number unique to the thread.
|===
include::{generated-dir}/config/quarkus-dynamodb.adoc[opts=optional, leveloffset=+1]
Copy link
Member

@machi1990 machi1990 Sep 13, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 on the usage of generated doc, I am liking this :-)

@marcinczeczko
Copy link
Contributor Author

btw, I opened quickstarts PR quarkusio/quarkus-quickstarts#282 to align with this update.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I spotted a typo and added a comment and a question. Can you have a look?

We're nearly there :).

/**
* The maximum number of connections allowed in the connection pool.
*
* Each built HTTP client has it's own private connection pool.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Each built HTTP client has it's own private connection pool.
* Each built HTTP client has its own private connection pool.

/**
* The amount of time to wait when acquiring a connection from the pool before giving up and timing out.
*
* Default is 10 seconds.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we should make them hard defaults so that they are properly documented. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sense, but I'm wondering now if I should document it in here. It's basically because those default are buried deep in the SDK builders and took me some time to find them out. So I think I should rather remove them. WDYT ?


/**
* Configure the maximum amount of time that a connection should be allowed to remain open while idle.
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In straight Javadoc, you would need a <p>, wouldn't you? Or the doc output is OK?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I missed that. Fixed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean added paragraph to the next row. Basically the doc output when checking the generated HTML is fine

marcinczeczko and others added 4 commits September 18, 2019 15:35
- Refactored configuration structure - broken down config into dynamodb, AWS, SDK & HTTP client groups
- Added config of TLS Managers for sync/async clients
- Added config of HTTP Proxy for async client
- Added support for SDK client interceptors
@gsmet gsmet force-pushed the dynamodb-more-configs branch from 1303514 to 8648da0 Compare September 18, 2019 13:55
@gsmet
Copy link
Member

gsmet commented Sep 18, 2019

@marcinczeczko I rebased and I added a couple of commits to improve auto-documentation. Can you have a look at them?

I'll wait for your blessing before merging.

@marcinczeczko
Copy link
Contributor Author

Thanks for those updates, looks great. You have my blessing :)

@gsmet
Copy link
Member

gsmet commented Sep 18, 2019

Perfect, thanks!

Kudos for this work. I will merge this and check the quickstart update tomorrow.

@gsmet gsmet merged commit bc67997 into quarkusio:master Sep 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants