shenyu icon indicating copy to clipboard operation
shenyu copied to clipboard

When creating metadata, generate the corresponding rule in the plugin

Open ttttangzhen opened this issue 5 years ago • 5 comments

Now users need to configure metadata and then configure rules to use the dubbo plugin.

Shenyu can provide the option of whether to create corresponding rules at the same time.

for example, if users create dubbo metadata and choose generate rule, show users the dubbo selectors to choose. and then generate the corresponding rule in this selector.

ttttangzhen avatar May 08 '21 09:05 ttttangzhen

I have a question, Why create a selector before uploading metadata?

KevinClair avatar May 08 '21 14:05 KevinClair

I have a question, Why create a selector before uploading metadata?

there is no strict order when creating them.

shenyu use uri to choose metadata, rule filter use uri to filter requests. In fact, metadata has the same status as rules.

This feature is only an option, it's a supplement to dubbo client. For some third-party interfaces, users can't use the dubbo client, and can use this method to improve efficiency

ttttangzhen avatar May 09 '21 01:05 ttttangzhen

I have a question, Why create a selector before uploading metadata?

there is no strict order when creating them.

shenyu use uri to choose metadata, rule filter use uri to filter requests. In fact, metadata has the same status as rules.

This feature is only an option, it's a supplement to dubbo client. For some third-party interfaces, users can't use the dubbo client, and can use this method to improve efficiency

If they can't use dubbo client, they should create the metedata, selector and rules. Choose the selector if it has been existed, and add the rule after the selector.

KevinClair avatar May 09 '21 15:05 KevinClair

If they can't use dubbo client, they should create the metedata, selector and rules. Choose the selector if it has been existed, and add the rule after the selector.

Do you mean metadata must be created before selector? If not, My idea might improve efficiency. I think metadata and selector are not created in a strict order.

ttttangzhen avatar May 10 '21 01:05 ttttangzhen

That's not what I mean.

KevinClair avatar May 10 '21 02:05 KevinClair