Commit e431b36
committed
DelegatingAuroraConnection: Allow more control on delegate choice
This allows you to specify more precise what type of logic should be used in picking a delegate connection.
Previously the only control was through setting the readOnly status. This behavior is still defaulted as the `Smart` option.
But in addition behaviors to use only the master, or only a secondary, or even distribute to specific secondary servers have been added.
This can allow for more performant control over which connections to use, but can also allow options to make better use of the cluster.
Please read the javadocs at the top of `DelegatingAuroraConnection` for more details on the different behaviors this now provides.1 parent e2eec47 commit e431b36
File tree
6 files changed
+601
-31
lines changed- arcCommon/src
- main/java/org/threadly/db/aurora
- test/java/org/threadly/db/aurora
- mysqlAuroraArc/src/test/java/org/threadly/db/aurora
6 files changed
+601
-31
lines changedLines changed: 41 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
82 | 92 | | |
83 | 93 | | |
84 | 94 | | |
85 | 95 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
| 96 | + | |
| 97 | + | |
90 | 98 | | |
91 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
92 | 107 | | |
93 | 108 | | |
94 | 109 | | |
95 | 110 | | |
96 | | - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
97 | 132 | | |
98 | 133 | | |
99 | 134 | | |
| |||
0 commit comments