|Multi-threaded/Multiprocess Jgit use [message #1067554]
||Tue, 09 July 2013 10:16
| Raza Ali
Registered: July 2013
My apologies if this is a newbie question or if its not the right forum, or if Im not concise enough.
I am using jgit to manage storage of a large number of what we call 'model folders'. Each folder has its separate repository. We have a singleton component responsible for all access to model content, which currently locks out multithreaded use at the level of each model (using Reentrant locks)
We want to be able to have multiple instances of the software for better load balancing, working on multiple servers with the same filesystem. This would mean that what was singleton before is no longer exclusively accessing the repositories/working directories. The extension of the previous solution would be to use FileLocks instead of reentrant locks.
Im posting this here to ask if we are going the right way with this, before I go too far in my implementation.
Powered by FUDForum
. Page generated in 0.01919 seconds