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

fixing-twin #3129

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

Nothere998
Copy link

Solution: used Thread Synchronization with wait() and notify()
By employing thread synchronization mechanisms (wait and notify), the BallThread can be made to pause and resume efficiently without busy waiting.

Nothere998 and others added 3 commits December 7, 2024 17:50
issue This PR Solves
In microservices, logs are often collected using busy waiting loops, where the system constantly checks for new logs. This leads to several issues:

Wasting Resources: The system keeps checking for new logs, using up CPU resources even when there are no logs to process.

Increased Latency: Logs are delayed because the system is busy checking for new data rather than processing logs as they arrive.   

This PR solves these problems by switching to a more efficient event-driven log aggregation system. Instead of constantly checking for new logs, the system reacts only when new logs are available, reducing unnecessary CPU usage and improving scalability and performance.
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