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

clean log messages #2309

Merged
merged 1 commit into from
Jan 30, 2025
Merged

clean log messages #2309

merged 1 commit into from
Jan 30, 2025

Conversation

terrazoon
Copy link
Contributor

@terrazoon terrazoon commented Jan 29, 2025

Description

UI components are requesting various counts and statuses from the backend multiple times per second, resulting in about half of the lines in the API logs being totally useless and making the logs hard to read and filter through.

Use redis on the UI side to store these values for 30 seconds, so the calls to get fresh data only hit the back end every thirty seconds (i.e. reduce calling volume by 99.9%).

Security Considerations

N/A

@terrazoon terrazoon self-assigned this Jan 29, 2025
@terrazoon terrazoon marked this pull request as draft January 29, 2025 19:38
@terrazoon terrazoon marked this pull request as ready for review January 30, 2025 17:30
Copy link
Contributor

@ccostino ccostino left a comment

Choose a reason for hiding this comment

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

Thank you, @terrazoon!

Noting that I see the ex parameters for the expiry/ttl too, excellent. 🙂

@terrazoon terrazoon merged commit 41001b7 into main Jan 30, 2025
11 checks passed
@terrazoon terrazoon deleted the clean_log_messages branch January 30, 2025 19:11
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.

3 participants