Start United States USA — software How to Develop Your Distributed SQL Statement in Apache ShardingSphere

How to Develop Your Distributed SQL Statement in Apache ShardingSphere

160
0
TEILEN

Here’s how to understand and develop your Distributed SQL syntax, as well as implement it throughout the development lifecycle from demand analysis to testing.
Join the DZone community and get the full member experience. In the previous articles “ An Introduction to DistSQL ” and “ Integrating SCTL Into DistSQL’s RAL— Making Apache ShardingSphere Perfect for Database Management ”, the Apache ShardingSphere committers shared the motivations behind the development of DistSQL, explained its syntax system, and impressively showcased how you can use just one SQL to create a sharding table. Today, to help you gain a better understanding of DistSQL and develop your own DistSQL syntax, our community author analyzes the design & development process of DistSQL and showcases how you can implement a brand new DistSQL grammar in four stages of the development life cycle (i.e. demand analysis, design, development & testing). Like standard SQL, DistSQL or Distributed SQL is a built-in SQL language unique to ShardingSphere that provides incremental functional capabilities beyond standard SQL. Its design purpose is to empower resource and rule management with SQL operation capabilities. For more information about DistSQL, please read “Build a data sharding service with DistSQL.” Redefining the boundary between middleware and database, and allowing developers to leverage Apache ShardingSphere as if they were using a database natively, is DistSQL’s design goal. Therefore, to avoid a steep learning curve, DistSQL provides a syntax structure and syntax validation system similar to standard SQL. Another advantage of DistSQL is its ability to manage resources and rules at the SQL level without configuration files. Toolkit: You need to know the DistSQL execution process as well as the basics of synaptics and plug-ins. The complete DistSQL execution process is truly complicated, but the awesome architecture of ShardingSphere allows developers to develop DistSQL features without having to pay attention to the whole process.

Continue reading...