awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
flike avatar

flike/kingshard

0
View on GitHub↗
6,414 stars·1,218 forks·Go·15 views

Kingshard

Kingshard is a MySQL database proxy and sharding middleware that routes SQL traffic between clients and multiple database nodes. It functions as a load balancer, read-write splitter, and SQL query firewall to manage how data is accessed and distributed across a database infrastructure.

The system implements data sharding using hash, range, or date strategies to split tables across multiple nodes. It enables read-write splitting by directing data modification requests to a master node while distributing read-only queries across a pool of slave replicas.

The proxy provides traffic management through backend connection pooling and query routing, including the ability to direct queries to specific nodes via manual comments. Security is handled through client IP access control and the filtering of forbidden SQL patterns via a blacklist.

The project supports packaging as a container image for consistent deployment.

Features

  • MySQL Database Sharding - Distributes data across multiple MySQL nodes using hash or range strategies to increase storage capacity and throughput.
  • MySQL Proxy Middleware - Provides a high-performance proxy layer designed specifically to route SQL traffic for MySQL database clusters.
  • Data Range Distribution - Allocates data to specific nodes based on predefined key ranges to maintain logical data ordering.
  • Data Sharding - Splits table data across multiple nodes using hash or range keys to improve system scalability.
  • Connection Pool Managers - Manages database connection lifecycles and pool settings to optimize resource utilization and maintain system stability.
  • Connection Limit Managers - Enforces maximum concurrent connection limits per backend server to prevent node saturation.
  • Database Node Administration - Provides administrative commands to add or remove master and slave nodes and toggle their operational availability.
  • Database Node Health Tracking - Tracks the online and offline status of backend nodes to dynamically exclude unhealthy instances from the routing pool.
  • Query Routing - Directs SQL statements to specific database nodes based on shard locations and manual overrides.
  • Connection Pooling - Manages a pool of reusable database connections to optimize concurrency and prevent backend node saturation.
  • Read-Write Splitting - Separates database traffic by routing write operations to the master and read requests to replicas.
  • Replica Load Balancers - Distributes read requests across multiple MySQL replicas to ensure balanced resource utilization and high availability.
  • Read Load Balancers - Distributes read-only queries across a pool of slave replicas to prevent performance bottlenecks.
  • Sharding Middleware - Implements a proxy layer that abstracts data distribution and routes queries between applications and database shards.
  • Hash-Based Data Distribution - Distributes database records across nodes using hashing algorithms to ensure a balanced load and storage.
  • Shard Routing - Routes data operations to specific shards or multiple nodes based on defined query conditions.
  • Blacklist Filtering - Implements a blacklist system to block dangerous or inefficient SQL patterns from executing on the backend.
  • Manual Routing Overrides - Provides the ability to override automatic sharding logic by specifying the target node via SQL comments.
  • Proxy Configuration Management - Allows switching database states between online and offline and updating configuration values during runtime.
  • Session-Node Affinity - Ensures all operations within a single session target one specific node to maintain database transaction integrity.
  • IP Address Filters - Secures database access by validating client connection requests against a whitelist of allowed IP addresses.
  • Request Access Restrictions - Validates incoming requests via client IP allowlists and filters for forbidden SQL patterns to authorize database access.
  • SQL Blacklists - Blocks dangerous or inefficient SQL statements using a blacklist to prevent them from executing on the backend.
  • SQL Firewalls - Inspects and filters SQL queries using IP whitelists and pattern blacklists to prevent unauthorized or dangerous operations.
  • SQL Traffic Filtering - Restricts database access via IP whitelists and blocks dangerous SQL statements using a blacklist.
  • IP Access Restrictions - Restricts database connections using an IP access control list to secure the environment from unauthorized clients.
  • Database Tools - High-performance MySQL proxy.
  • Database Utilities - High-performance MySQL database proxy written in Go.
  • Database Tools - High-performance MySQL proxy.

Star history

Star history chart for flike/kingshardStar history chart for flike/kingshard

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Kingshard

Similar open-source projects, ranked by how many features they share with Kingshard.
  • qihoo360/atlasQihoo360 avatar

    Qihoo360/Atlas

    4,629View on GitHub↗

    Atlas is a MySQL database proxy and middleware system designed to manage traffic between clients and database clusters. It functions as a high-availability database gateway and sharding middleware, providing a fault-tolerant entry point for routing, load balancing, and managing database connections. The project differentiates itself through a combination of read-write splitting, which directs queries to primary or replica servers, and data sharding to distribute information across multiple backend instances. It utilizes a connection pooler to reduce the overhead of establishing new sessions a

    C
    View on GitHub↗4,629
  • pgdogdev/pgdogpgdogdev avatar

    pgdogdev/pgdog

    3,361View on GitHub↗

    pgdog is a PostgreSQL sharding proxy, distributed SQL router, and connection pooler. It is designed to enable horizontal data distribution by splitting tables and indices across multiple independent servers to scale storage and processing capacity. The project distinguishes itself through online resharding capabilities, using logical replication to move data between shards without application downtime. It supports multiple routing strategies, including hash, list, and range-based query routing, and manages distributed atomic transactions using a two-phase commit process to ensure consistency

    Rustload-balancerpoolerpostgresql
    View on GitHub↗3,361
  • youtube/vitessyoutube avatar

    youtube/vitess

    21,032View on GitHub↗

    Vitess is a distributed MySQL orchestrator and clustering system designed for horizontal database scaling. It functions as sharding middleware that distributes data and load across multiple MySQL instances to handle growth beyond the capacity of a single machine. The system provides a proxy layer that abstracts data distribution, allowing applications to query a cluster as a single logical database without knowing the physical location of the data. This is achieved through a routing mechanism that intercepts queries and directs them to the appropriate shards based on keyspace mappings. The p

    Go
    View on GitHub↗21,032
  • go-xorm/xormgo-xorm avatar

    go-xorm/xorm

    6,628View on GitHub↗

    xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries and maps database rows back into native objects, providing a multi-dialect database driver that supports MySQL, PostgreSQL, SQLite, Oracle, SQL Server, and TiDB. The project features a read-write splitting manager that routes modification requests to a primary database and read requests to replicas. It includes a database schema synchronizer to automatically align table structures and indexes with application data models, as well as a fluent SQL query builder for constructing co

    Gogolangmssqlmysql
    View on GitHub↗6,628
See all 30 alternatives to Kingshard→

Frequently asked questions

What does flike/kingshard do?

Kingshard is a MySQL database proxy and sharding middleware that routes SQL traffic between clients and multiple database nodes. It functions as a load balancer, read-write splitter, and SQL query firewall to manage how data is accessed and distributed across a database infrastructure.

What are the main features of flike/kingshard?

The main features of flike/kingshard are: MySQL Database Sharding, MySQL Proxy Middleware, Data Range Distribution, Data Sharding, Connection Pool Managers, Connection Limit Managers, Database Node Administration, Database Node Health Tracking.

What are some open-source alternatives to flike/kingshard?

Open-source alternatives to flike/kingshard include: qihoo360/atlas — Atlas is a MySQL database proxy and middleware system designed to manage traffic between clients and database… pgdogdev/pgdog — pgdog is a PostgreSQL sharding proxy, distributed SQL router, and connection pooler. It is designed to enable… youtube/vitess — Vitess is a distributed MySQL orchestrator and clustering system designed for horizontal database scaling. It… go-xorm/xorm — xorm is a relational mapper and object-relational mapping tool for Go. It translates Go structures into SQL queries… sysown/proxysql — ProxySQL is a database proxy designed to route and balance traffic between applications and MySQL or PostgreSQL… pgbouncer/pgbouncer — PgBouncer is a lightweight middleware proxy server and connection pooler for PostgreSQL. It acts as a database…