You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shardingsphere.apache.org by juan pan <pa...@apache.org> on 2019/01/10 05:04:52 UTC
Enhancement for generating globally unique ID for ShardingSphere
To modify API of generating gobally unique ID, and provide alternatives of
gobally unique ID generator for users now is planned to start.
Here are the main tasks of this plan:
- 1. Modify the type of returned value of keyGenerator from Number to
Comparable<?>.
- 2. Support to set or get properties for keyGenerator by all kinds of
configuration files, e.g. yaml or springboot.
- 3. Modify API of keyGenerator for Sharding-JDBC and Sharding-Proxy
- 4. Besides Snowflake, implement other popular keyGenerator algorithms for
ShardingSphere, e.g. Leaf[1] or UUID.
[1] https://tech.meituan.com/MT_Leaf.html
The first task has been done, please refer to
https://github.com/sharding-sphere/sharding-sphere/pull/1724.
Any suggestions, please reply to this email.
---------------------------------
Juan Pan (Trista)
Apache ShardingSphere
Re: Enhancement for generating globally unique ID for ShardingSphere
Posted by juan pan <pa...@apache.org>.
Hi, everyone,
The good news about this enhancement is that we invite Zhaodong Xie, the
creator of Leaf key generator project to contribute to ShardingSphere, and
he will be in charge of the Leaf key generator implementation.
In addition, other tasks of this issue are all finished, please refer to
https://github.com/apache/incubator-shardingsphere/issues/1729.
---------------------------------
Juan Pan (Trista)
Apache ShardingSphere
zhangliang@apache.org <zh...@apache.org> 于2019年1月10日周四 下午2:18写道:
> Yes, we finally support more generator-types and more key types of
> generated key. That's good.
>
> And we plan to simplify configuration for use key-generator by enum to
> instead of full java class name.
>
> ------------------
>
> Liang Zhang (John)
> Apache ShardingSphere & Dubbo
>
>
> juan pan <pa...@apache.org> 于2019年1月10日周四 下午1:05写道:
>
> > To modify API of generating gobally unique ID, and provide alternatives
> of
> > gobally unique ID generator for users now is planned to start.
> >
> > Here are the main tasks of this plan:
> > - 1. Modify the type of returned value of keyGenerator from Number to
> > Comparable<?>.
> > - 2. Support to set or get properties for keyGenerator by all kinds of
> > configuration files, e.g. yaml or springboot.
> > - 3. Modify API of keyGenerator for Sharding-JDBC and Sharding-Proxy
> > - 4. Besides Snowflake, implement other popular keyGenerator algorithms
> for
> > ShardingSphere, e.g. Leaf[1] or UUID.
> >
> > [1] https://tech.meituan.com/MT_Leaf.html
> >
> >
> > The first task has been done, please refer to
> > https://github.com/sharding-sphere/sharding-sphere/pull/1724.
> >
> > Any suggestions, please reply to this email.
> >
> >
> > ---------------------------------
> > Juan Pan (Trista)
> > Apache ShardingSphere
> >
>
Re: Enhancement for generating globally unique ID for ShardingSphere
Posted by "zhangliang@apache.org" <zh...@apache.org>.
Yes, we finally support more generator-types and more key types of
generated key. That's good.
And we plan to simplify configuration for use key-generator by enum to
instead of full java class name.
------------------
Liang Zhang (John)
Apache ShardingSphere & Dubbo
juan pan <pa...@apache.org> 于2019年1月10日周四 下午1:05写道:
> To modify API of generating gobally unique ID, and provide alternatives of
> gobally unique ID generator for users now is planned to start.
>
> Here are the main tasks of this plan:
> - 1. Modify the type of returned value of keyGenerator from Number to
> Comparable<?>.
> - 2. Support to set or get properties for keyGenerator by all kinds of
> configuration files, e.g. yaml or springboot.
> - 3. Modify API of keyGenerator for Sharding-JDBC and Sharding-Proxy
> - 4. Besides Snowflake, implement other popular keyGenerator algorithms for
> ShardingSphere, e.g. Leaf[1] or UUID.
>
> [1] https://tech.meituan.com/MT_Leaf.html
>
>
> The first task has been done, please refer to
> https://github.com/sharding-sphere/sharding-sphere/pull/1724.
>
> Any suggestions, please reply to this email.
>
>
> ---------------------------------
> Juan Pan (Trista)
> Apache ShardingSphere
>