-
Notifications
You must be signed in to change notification settings - Fork 369
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
docs: Document thread starvation scenario workaround. #11142
Conversation
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.
Can we reduce this PR to just the second commit for now, and then consider the first commit separately?
@@ -82,76 +82,6 @@ restart listening for messages with `StartAsync(...)` again. Due to the expense | |||
instance, it is recommended that a singleton client per topic is used for the lifetime of the | |||
application. | |||
|
|||
## Dependency Injection |
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'm not sure about this - the AddSubscriberClient and AddPublisherClient methods do have slightly different overloads to the pure-GAPIC ones. I suspect we don't need as much detail as we currently have, but I think some is important - including the aspects about automatic stopping.
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.
Yes, OK, I'll split this PR in two and reinstate some of the Pub/Sub specific docs.
@@ -101,6 +101,28 @@ builder.Services | |||
.AddExampleClient(); | |||
``` | |||
|
|||
#### Dependency injection in high-load-at-startup environments. | |||
|
|||
If your application uses Application Default Credentials while running in a Google runtime (Compute, |
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.
Compute Engine instead of just Compute?
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.
Yes done.
builder.Services | ||
.AddRazorPages() | ||
.AddExampleClient(); | ||
// Workarounf for possible thread starvation scenario. |
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.
Workarounf => Workaround
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.
Done.
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've updated this PR to be only about the library wide changes in docs.
@@ -82,76 +82,6 @@ restart listening for messages with `StartAsync(...)` again. Due to the expense | |||
instance, it is recommended that a singleton client per topic is used for the lifetime of the | |||
application. | |||
|
|||
## Dependency Injection |
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.
Yes, OK, I'll split this PR in two and reinstate some of the Pub/Sub specific docs.
@@ -101,6 +101,28 @@ builder.Services | |||
.AddExampleClient(); | |||
``` | |||
|
|||
#### Dependency injection in high-load-at-startup environments. | |||
|
|||
If your application uses Application Default Credentials while running in a Google runtime (Compute, |
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.
Yes done.
builder.Services | ||
.AddRazorPages() | ||
.AddExampleClient(); | ||
// Workarounf for possible thread starvation scenario. |
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.
Done.
Towards #11092