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

Publish messages about score processing completion to redis #125

Merged
merged 2 commits into from
Dec 20, 2022

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Dec 19, 2022

Step two to the proposed flow required for ppy/osu#18877.

Not much to see here either, but please do advise on data structure design, naming conventions, and error handling. I've made educated guesses but they may well turn out to be incorrect.

Notably, the amount of data in the published message is minimal, placing the burden of refetching the updated user statistics on the subscribers. This feels more versatile but also possibly inconvenient.

@peppy peppy self-requested a review December 20, 2022 06:03
public class ScoreProcessed
{
public long ScoreId { get; init; }
public byte ProcessedVersion { get; init; }
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this is going to be useful but I guess there's no harm.


try
{
PublishMessage("osu-channel:score:processed", new ScoreProcessed
Copy link
Member

Choose a reason for hiding this comment

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

Now I'm wondering if we should have put the osu-channel prefix in queue-processor...

Copy link
Member

Choose a reason for hiding this comment

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

Let's get the process working first and tidy things up after.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fair cop. I'll double back on this once everything else is in place.

@peppy peppy merged commit 8f5626f into ppy:master Dec 20, 2022
@bdach bdach deleted the publish-score-processed branch December 20, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants