richardartoul / nola

MIT License
74 stars 6 forks source link

Enhance Registry to Remember Blacklisted Servers for Actors #71

Open aratz-lasa opened 1 year ago

aratz-lasa commented 1 year ago

Description

This issue is to enhance the registry functionality by implementing the ability to remember blacklisted servers for actors. Currently, the registry only knows the single blacklisted server ID provided by the caller. However, it would be beneficial to accumulate a set of known blacklisted servers for each actor, along with their corresponding blacklist end times.

Enhancement Proposal

  1. Modify the registry implementation to maintain a blacklist set for each actor, storing the server IDs of the blacklisted servers.
  2. Include an associated blacklist end time for each blacklisted server in order to track the duration of the blacklist.
  3. Update the registry methods to handle the accumulation and management of blacklisted servers for actors, considering factors such as expiration of blacklists and proper handling of subsequent requests.
  4. Implement appropriate data structures and algorithms to efficiently store and retrieve blacklisted servers for actors.
  5. Consider the impact on performance and resource utilization while designing and implementing the enhanced blacklist functionality.
  6. Write tests to validate the behavior and correctness of the registry with the new blacklisted server tracking feature.
  7. Evaluate the effectiveness of the enhanced registry in real-world scenarios and gather feedback for further improvements.

Additional information

The ability to remember blacklisted servers for actors will provide several benefits, including:

This issue will serve as a placeholder to explore and experiment with the proposed enhancements, gather feedback, and conduct further investigations.

richardartoul commented 1 year ago

I added some comments here that I think are relevant: https://github.com/richardartoul/nola/issues/72