Hi,
I'm looking at the Vitess connector and we are depending on vtctld. Looking through the code, the only place where we need it is to get a starting gtid for a new shard
here. The semantic here is basically: "providing the latest gtid with best effort".
However, we can achieve the same thing by passing in "current" as the starting position, Vitess internally will translate that into the
latest current position:
> When a stream is created, gtid can either be “current” or a valid binlog position at which the vstream starts streaming events.
I believe this could remove vtctld from vitess connector's dependency and simplify the overall architecture, but would like to hear the feedback in case I'm missing something here.
Thanks,
Yang