gRPC database reflection retrieval timing
complete
S
Shunsuke Nakamura
When using a gRPC database, I think it's possible to obtain service and method schemas with reflection.
On the other hand, when a new service or method is added to the API server, there are times when it is not reflected in reflection. <該当のサービス>The method can be obtained by manually executing the
grpcurl <該当のサーバ> list
, so it seems that reflection itself is enabled, but at what timing will schema changes be reflected in the databaseShuichiro Fukuoka (BaseMachina)
marked this post as
complete
I've answered the questions and updated the documentation, and I'm done
Shuichiro Fukuoka (BaseMachina)
Thank you for contacting us.
As for the reflection results of gRPC data sources, in particular, we do not leave a cache on our API server, so they are reflected immediately when the connected gRPC server is updated.
However, the cache remains on the browser, so if you update the gRPC server while editing an action, we apologize for the inconvenience, but please reload the browser.
Also, what is used for reflection is the gRPC server in the environment selected when the action edit screen is open. Please make sure that the environment you have selected is what you intended.
If the incident does not seem to be resolved, we will conduct an additional investigation, so we would appreciate it if you could contact us again. Thank you for your continued support.
S
Shunsuke Nakamura
Shuichiro Fukuoka (BaseMachina)
Thank you so much for your quick reply!
I understand that there is no cache in particular.
I tried reloading the browser and saving/re-editing the action, but there was no particular change in the reflection results
As you can imagine, there is only one service that is not reflected, but that service is a service that only has stream rpc. Are there any specifications such as stream rpc not being able to be selected on base machina
This time, I was planning to call stream rpc like unary and use it, but if there are such specifications, the unary format rpc itself can be easily added, so I'm going to do that
Shuichiro Fukuoka (BaseMachina)
Shunsuke Nakamura: Thanks for the detailed information!
> As you can imagine, there is only one service that is not reflected, but that service is a service that only has stream rpc. Are there any specifications such as stream rpc not being able to be selected on base machina
As you can see here, streaming RPC is currently not supported by base machina, and gRPC method options are not displayed.
> This time, I was planning to call stream rpc like unary and use it, but if there are such specifications, the unary format rpc itself can be easily added, so I'm going to do that
I'm very sorry to have bothered you.
Regarding this matter, I would like to clearly state in the document that streaming RPC is not supported.
S
Shunsuke Nakamura
Shuichiro Fukuoka (BaseMachina)
Thanks for contacting us!
I am aware of stream rpc specifications.
Also, thank you for the documentation.
Thank you for your continued support!
Shuichiro Fukuoka (BaseMachina)
Shunsuke Nakamura: I've added a description to the documentation.
This ticket will be closed.