Skip to content
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

Avoid blocking on InvokerService creation #2180

Closed
wants to merge 2 commits into from

Conversation

muhamadazmy
Copy link
Contributor

@muhamadazmy muhamadazmy commented Oct 28, 2024

Avoid blocking on InvokerService creation

Summary:
While testing I noticed that InvokerService creations takes
around 25ms (on my machine) to be created with InvokerService::from_options

I traced the delay to a single line of code here

.with_native_roots()

My first thought was to cache the HttpsConnectorBuilder but this won't work because HttpsConnectorBuilder is not
clonable hence what i did instead is to move the InvkerService creation to the async trask and use a JoinSet instead


Stack created with Sapling. Best reviewed with ReviewStack.

@muhamadazmy
Copy link
Contributor Author

After the wait for logs version, Everything runs in parallel

Screenshot From 2024-10-28 13-02-38

…trol loop

Summary:
- Improve tracing of ControlProcessors commands
- Run the spawn of partition processors concurrently
Summary:
While testing I noticed that InvokerService creations takes
around 25ms (on my machine) to be created with `InvokerService::from_options`

I traced the delay to a single line of code here
https://github.com/restatedev/restate/blob/1cb01203f18bfc6ddb5fe4c45f6697799a79c27e/crates/service-client/src/http.rs#L73

My first thought was to cache the `HttpsConnectorBuilder` but this won't work because `HttpsConnectorBuilder` is not
clonable hence what i did instead is to move the InvkerService creation to the async trask and use a `JoinSet` instead
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant