Home Help Center

locker in using evcitor index

sudssuds Member Hongquan.ZhangOrganization: HUSTProject: StreamOut is a distribute streaming service
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 .

Comments

  • benoitbenoit Rennes, FranceAdministrators, ZeroC Staff Benoit FoucherOrganization: ZeroC, Inc.Project: Ice ZeroC Staff
    Hi,

    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.

    Cheers,
    Benoit.
Sign In or Register to comment.