Skip to content

Conversation

sergiyvamz
Copy link
Contributor

Summary

Spring Framework example applications for balanced reader nodes

Description

  • Add two example application with load balanced access to readers.
  • Added new configuration presets SF_ optimized for Spring Framework applications
  • Fixes in session state transfer

Additional Reviewers

@karenc-bq
@crystall-bitquill
@aaronchung-bitquill

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -52,6 +54,14 @@ public class ConfigurationProfilePresetCodes {
public static final String I0 = "I0"; // Normal
public static final String I1 = "I1"; // Aggressive

public static final String SF_D0 = "SF_D0"; // Normal
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT:
what about SD0, or S_D0?
however, it would be nice to add an extra comment, to indicate whether S_D0 and D0 are related just with the addition of Spring Framework

Copy link
Contributor Author

@sergiyvamz sergiyvamz Jan 25, 2024

Choose a reason for hiding this comment

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

Line 31 the same file?

// Presets family SF_D, SF_E ,SF_F - internal connection pool; optimized for Spring Framework / Spring Boot

}

@Override
public void setupPristineAutoCommit(final boolean autoCommit) throws SQLException {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make this parameter optional and then only have one setupPristineAutoCommit() function instead of two that do almost the same thing except in one line?

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 suspect that it's be hard to distinguish the case when the value is explicitly provided from the case when the value is not provided and default value is used. For example, for setupPristingCatalog(String catalog), null is a legit value when it's provided.

@sergiyvamz sergiyvamz force-pushed the spring-readonly-example branch from f15df12 to 20fc1a3 Compare January 25, 2024 18:46
@sergiyvamz sergiyvamz force-pushed the spring-readonly-example branch 4 times, most recently from 2eb594e to 38e67b0 Compare January 30, 2024 22:38
@sergiyvamz sergiyvamz force-pushed the spring-readonly-example branch from 38e67b0 to b90e454 Compare January 31, 2024 19:17
@sergiyvamz sergiyvamz merged commit d073fba into main Jan 31, 2024
@sergiyvamz sergiyvamz deleted the spring-readonly-example branch January 31, 2024 19:17
jasonli-improving pushed a commit to Bit-Quill/aws-advanced-jdbc-wrapper that referenced this pull request Feb 2, 2024
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.

5 participants