-
Notifications
You must be signed in to change notification settings - Fork 13
Support stream level configuration #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
I'm a little nervous about the use of |
I am also a bit nervous about this aspect, as explained in the notes itself. The main concern is that it may seriously affect other clients. We don't know what we don't know. I suggest we can switch to use just an What do you think ? |
That sounds good to me. |
Actually after looking through the code for a while, I was thinking about
It is easy to parse from this correctly-formated format to
For example, What do you think about these suggestion of using string field for |
The duration as string is interesting, but I think I'd prefer to keep it as an int64. The string is less predictable, i.e. what formats are supported, ns, ms, s, m, d? Can they be combined? It's not obvious from a user's perspective IMO. For the |
It also mean, if we decide to support minute , which is most relevant, no configuration can go lower than 1 minute , which is also not that bad either.
|
For time unit, milliseconds |
I think milliseconds is kinda a bit "unrealistic" scenario. But it's fine, since it safeguards precision. |
Seconds is probably more realistic, but what about cases in the future where we have other durations for things requiring more precision? We'll want to be consistent in how we approach time units. |
changes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, just some minor changes.
As of this version, all custom stream configuration are using |
This PR is to add custom stream level configuration in the API, so that upon a
CreateStream
request, the client has the possibility to customize the stream configuration.Related issue