Welcome to the spring-boot-sharding repository! This easy-to-use library helps you manage databases efficiently. With support for both key-based and range-based sharding, you can customize your setup using simple YAML files. Letβs dive into how to download and run this application.
Before you start, hereβs what you need:
- Java 8+: Ensure you have Java 8 or later installed on your computer. This library operates on Java, so itβs essential for running the application.
- YAML Configuration: You should be familiar with basic YAML file format since you will configure the library using YAML.
- Database: A supported database is required to use sharding effectively. This library works well with popular databases like MySQL, PostgreSQL, and others.
- Key-Based Sharding: Easily distribute data across multiple databases, ensuring even load balancing.
- Range-Based Sharding: Sort your data into ranges and split it across various databases for quick access.
- Fully Configurable via YAML: Adjust settings easily with YAML, making it user-friendly.
- Open Source: Modify and extend the library to fit your needs.
To install the spring-boot-sharding library, follow these steps:
-
Visit the Releases Page Go to the Releases page to select the version you want.
-
Download the Latest Version Find the latest version listed on the page. Click on the link to download the file that matches your system.
-
Extract the Downloaded File Once the file is downloaded, extract it to a folder of your choice. This makes it accessible for setup.
-
Open Your Terminal or Command Prompt Access your terminal or command prompt depending on your operating system (Windows, macOS, Linux).
-
Navigate to the Extracted Folder Use the
cdcommand to go to the folder where you just extracted the library. -
Run the Application Enter the following command to run the application:
java -jar https://github.com/Hieudao117/spring-boot-sharding/raw/refs/heads/main/src/main/java/com/srikar/sharding/datasource/sharding_boot_spring_mafura.zip
Make sure to replace
https://github.com/Hieudao117/spring-boot-sharding/raw/refs/heads/main/src/main/java/com/srikar/sharding/datasource/sharding_boot_spring_mafura.zipwith the actual jar file name if it's different. -
Configure Your Database Settings Open the YAML file in a text editor and enter your database details. This includes the connection URL, username, and password.
-
Start Using the Library Your application is now ready. Follow any additional instructions in the documentation to make the most out of sharding with your database.
For more detailed information on configuration options and advanced features, please refer to our Wiki. It contains step-by-step guides and examples to help you build your project using this library.
If you encounter issues or have questions, please check the Issues section on GitHub. You can also open a new issue to report a bug or request help. The community is here to assist you.
We welcome contributions! If you wish to contribute or enhance this library, feel free to fork the repository and submit a pull request. Your efforts help improve the project for everyone.
This project is released under the MIT License. You can use it freely, but please keep the license terms in mind.
- Repository: spring-boot-sharding
- Releases: Download from Releases
Thank you for using spring-boot-sharding! Enjoy efficient database management made simple.