This forum has been archived. Please start a new discussion on GitHub.

locker in using evcitor index

Hi :
I made 3 indices for a evictor, but I am not sure that if I should use 3 lockers or all index must share one locker.
Please anybody give a tip on this.

Thanks very much .


  • benoit
    benoit Rennes, France

    It's hard to answer this question without knowing a lot more about your application but in general:
    • three locks might provide greater concurrency.
    • three locks will be more expensive to acquire than just one lock when an item is added/removed from the main evictor.
    • using three locks is more complex than using just one lock.

    My recommandation would be to start with a single lock as its simpler.