This blog has moved to Medium

Subscribe via email


lokc – a distributed locking framework in Java

Post removed to comply with company policy.

4 Comments

  1. Avish:

    Nice to see us you contributing to the community. Way to go! Also, good choice of name.

  2. ripper234:

    Thanks, I pondered the name for some time.

  3. Shlomo:

    I have no idea what the library does, but I shamelessly assume that by saying “using MySQL” you’re referring to creating some table holding the lock data, in a similar way to Gigaspaces.
    FYI, MySQL has support for application locks in the form of RELEASE_LOCK() and GET_LOCK(). Those are just named mutexes you can create, without meddling with tables. More info here: http://dev.mysql.com/doc/refman/5.1/en/miscellaneous-functions.html. Those functions are pretty neat and sometimes very convenient, but I don’t know if they are any good for you.

  4. ripper234:

    Shlomo – yes, something like that. I do need auto-release semantics – after X time the lock should be released automatically.

    I don’t think I’ll write an SQL implementation, the implementation in GigaSpaces was rather easy and good enough for us – most of the time was spent on writing the tests anyway.