-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removing Spring configuration from ShardingSphere #22469
Comments
6 tasks
6 tasks
|
This was referenced Nov 30, 2022
Merged
5 tasks
This was referenced Dec 5, 2022
Completed. Thank you all! |
6 tasks
This was referenced Aug 28, 2023
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi community
I want to discuss removing Spring Boot Starter and Spring Namespace configuration from ShardingSphere.
Background
Currently, ShardingSphere-JDBC supports
Java API
,YAML
,Spring Boot Starter
andSpring Namespace
configuration ways, and there are the following problems:spring.factories
will become invalid [2].Aim
Starting from 5.1.2, ShardingSphere provides a new configuration method: ShardingSphere Driver[3], which can help us achieve consistency in configuration ways, for example:
-Spring Namespace
Through the above ways, users can use unified YAML to configure ShardingSphere in their Spring Boot or Spring Namespace projects, which will help the community better focus on features rather than configuration compatibility.
Therefore, I suggest removing Spring configuration-related modules from ShardingSphere, including
shardingsphere-jdbc-spring
andspring
modules under each feature.Of course, this will also have some implications:
AlgorithmProvided
related classes at the same time. If users use Spring Bean to manage custom algorithms, some adjustments are required;TransactionTypeScanner
). If users need to change the transaction type at the method level, they can use the Java API. We may consider providing SQL Hint in the future, refer to Hint Routing [4].After the Spring configuration is removed, the configuration consistency of
ShardingSphere-JDBC
andShardingSphere-Proxy
will be better, and I hope the community can agree to this proposal.If there are no objections, I hope to have this done before the next release.
I am very grateful to the contributors and users of the community. It is the participation of each of you that makes this project better and better.
[1] #18093
[2] https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-3.0-Migration-Guide
[3] https://shardingsphere.apache.org/document/5.1.2/en/user-manual/shardingsphere-jdbc/jdbc-driver/
[4] https://shardingsphere.apache.org/document/5.1.2/en/user-manual/shardingsphere-jdbc/special-api/sharding/hint/
Tasks
shardingsphere-jdbc-spring
AlgorithmProvided
related classesAlgorithmProvided
related documentsThe text was updated successfully, but these errors were encountered: