Standardize maxLifetime to 55 minutes across examples#248
Merged
Conversation
Update connection pool maxLifetime settings to 3300 seconds (55 minutes) to align with connector best practices. The connector handles token refresh automatically, so connections can live longer. Changes: - java/pgjdbc: 600000 (10 min) -> 3300000 (55 min) - java/spring_boot: 1800000 (30 min) -> 3300000 (55 min) - typescript/type-orm: 2700 (45 min) -> 3300 (55 min) Also updated idleTimeout to 600000 (10 min) for consistency.
anwesham-lab
approved these changes
Jan 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update connection pool maxLifetime settings to 3300 seconds (55 minutes) to align with connector best practices.
Rationale
The connector handles token refresh automatically, so connections can live longer without manual token management. 55 minutes is just under the 1-hour DSQL session limit.
Changes
java/pgjdbc/ExamplePreferred.javajava/spring_boot/application.ymltypescript/type-orm/data-source.tsAlso updated idleTimeout to 600000 (10 min) for consistency.