Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Adding ApplicationGroup to EventHub Namespace #17430
Adding ApplicationGroup to EventHub Namespace #17430
Changes from all commits
1a41aa1
c6e218f
20796d8
4e69cb9
f6fba70
7a7739c
3123a03
c86de98
06ced13
1d046be
815c3de
3f56089
1e14052
286b8d4
5a58986
2caadf1
09fef2e
ed395f2
47f692e
a5a4148
79f0190
8f37a1a
374f65d
fdff5f4
61e9535
fb9fed9
f28cbcc
a871758
95eb65e
0a01c0c
b4a4ae5
a9631ec
2435f8b
e439fa9
9a5e340
b32af66
e0c8325
388787c
0b4d73b
00226d9
0d40417
b6cfe53
4d8f13b
c8c2121
e766329
d10918d
88ef72a
4c4412e
a37a993
33d7e6c
596f63f
0f26c36
3aacd73
eaa4588
e08385e
18f698e
a32b7c2
174c515
235c710
22b53c8
c739e98
22456ff
46367e8
bc4db64
d9ae9aa
a881456
1793e30
84f5111
3d06638
2b45b3a
258a37b
a208111
009f7ce
8834549
2ac0ebe
c0a9e3d
b2bbd6e
9ae6525
3eb3588
ece2399
f97a2c3
c8e18d6
c9a8e04
a2da1d9
495554c
a9304a8
97648b8
7400768
68b72d7
386b9a6
ffd6f22
276f61c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Will new connections be allowed while the isEnabled flag is still false? #Closed
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.
I have mentioned "no" new connections will be allowed. Do let me know if you think any fixes need to be made.
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.
Sorry I seemed to have read it wrong then. This is good.
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.
instead of an array why not just model it as policies.rateLimitThresholdPolicy.IncomingBytes
policies.rateLimitThresholdPolicy.OutgoingBytes
policies.rateLimitThresholdPolicy.IncomingMessages
?
Isnt it cleaner this way and you can also save on a lot of validations you might have to implement if you leave it as an array? #Closed
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.
I think you are coming from the perspective that there can only be 1 policy based on the metric Id which is applicable?
This makes sense to me, but:
{ "policies": { "ThrottlingPolicy": { "IncomingBytes": 1500, "OutgoingBytes": 2000 }, "SomeOtherPolicy": { "Metric1": 1500, "Metric2": 2000 } } }
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.
@yogeshgargmsft @kasun04
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.
@rkmanda This is also a smart approach. But it does not look extendable if we have to add more properties related to "throttlingPolicy" for the same metricId e.g if we want to add "throttlingApplicableTill" timestamp field and has the flexibility that it can be applied at individual metricId, then we loose out on that extendibility.
With arrays, yes we need to have certain checks & balances which will be present in service code and will keep getting added as the feature matures.
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.
Ok please be aware that either ways when you add new policies, they will need to be added in a new API version. API version 1 will have to populate the policies specific to that version and API version 2 will have to add a different set on a GET verb.
The other issue with arrays is that when the client wants to modify only a single element, they still have to ensure theres logic in place to manipulate the whole array. So in general we are discouraging teams from using arrays. If you are willing to deal with the validation/ versioning complexities it is fine but pl do so with the understanding of all the implications.
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.
do we have any upper/lower limit, if there is please add in the description.
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.
@yogeshgargmsft Is there one? or is it limited it int64 size?