kotman12 commented on PR #13993:
URL: https://github.com/apache/lucene/pull/13993#issuecomment-2476125066

   Author here, so the current monitor API makes it really hard to integrate 
into anything more "custom" like solr. This is because it tightly seals 
relevant implementation details like cache and index and makes opinionated 
choices about them, i.e. the cache _always_ caches everything and is a naive 
hashmap, the index is not exposed and can't be easily externally managed for 
things like replication, the indexing and search flows both hit coarse 
synchronization that creates blocking, etc. 
   
   The simple crud wrapper that monitor exposes today IMO doesn't make it 
amenable to be integrated into something like solr (maybe also part of the 
reason why elastic doesn't use it for percolator?). Tldr; The PR takes the most 
useful parts of monitor and uses them directly but relies on the visitor 
pattern. We'd like to avoid that. Not sure if there is a better way of changing 
the API to achieve the same thing? I welcome other thoughts and suggestions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to