Replies: 1 comment
-
I think we can impl this by allowing add a binding layer in each binding language.(like Python/Java) This is very important for using language binding in production environment. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
To implement a layer in python or nodejs, we should build a
PythonLayer
orNodejsLayer
first.Let's take Python as an example. First, we will implement
Layer
forPythonLayer
and then call the native function inside it. Bindings can provide their own layer interface based on their specific needs. For instance, a Python binding can expose a layer class that includes functions such aspre_stat
,post_stat
,pre_read
, andpost_read
.So the code will be like:
Some design decision:
RetryLayer
).Beta Was this translation helpful? Give feedback.
All reactions