Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Dec 7, 2024

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.

null62 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.
@iluwatar
Copy link
Owner

iluwatar commented Jan 5, 2025

Not sure what problem this solves.

Additionally, the build is failing. Please ensure that all the checks pass before requesting review.

Repository owner closed this by deleting the head repository Jan 5, 2025
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