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

Asynchronous delete of queues and topics #149

Merged
merged 6 commits into from Sep 27, 2017

Conversation

danielmarbach
Copy link
Contributor

Before

https://youtu.be/Nl82ePL8nLE

After

https://youtu.be/qSw5AHzIUyw

The video is still processing. But the TLDR version is that deleting is with my example here is almost one minute faster.

@SeanFeldman
Copy link
Collaborator

@tomkerkhove
Copy link
Collaborator

tomkerkhove commented Sep 26, 2017

Thank you for your contribution @danielmarbach!

LGTM, but I'll leave it up to @paolosalvatori & @SeanFeldman to review.

@SeanFeldman Do you use the naming convention to suffix async methods with Async?

@danielmarbach
Copy link
Contributor Author

danielmarbach commented Sep 26, 2017 via email

@danielmarbach
Copy link
Contributor Author

I do think there is probably more cleanup and adjustment necessary but this is a first step in the right direction and if I find some spare time I might be able to send in a few more PRs (nothing promised though)

Copy link
Collaborator

@SeanFeldman SeanFeldman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll remove .ToArray() where it's used.

{
DeleteRelay(relayService);
}
await Task.WhenAll(relayServices.Select(DeleteRelay).ToArray());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: .ToArray() is not needed.

@SeanFeldman SeanFeldman merged commit d7dc100 into paolosalvatori:develop Sep 27, 2017
@SeanFeldman
Copy link
Collaborator

Removed .ToArray() here.

@SeanFeldman
Copy link
Collaborator

I work with sean, if he would he would be in serious trouble ;)

I've contemplated to piss off @danielmarbach and ask to suffix methods in a code base that is not entirely async... But then he'd not leave me alone 😛

To be fair, the whole async suffix discussion is a mood point. At some point Clemens joked about suffixing the non-async code with a snail emoji (can't find the tweet). I wouldn't mind that 😄

@paolosalvatori
Copy link
Owner

Thanks @danielmarbach for the improvement :) Keep sending :) Indeed the tool still contains non-async method calls, as it was written before the await/async mechanism was added. Some parts were converted to await/async, but not all of them.

@SeanFeldman SeanFeldman modified the milestones: 4.0.103, 4.0.104 Sep 28, 2017
@SeanFeldman SeanFeldman changed the title Async delete Asynchronous delete of queues and topics Sep 28, 2017
This was referenced Sep 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants