Results 1 to 3 of 3
  1. #1
    markb_1984 is offline Member
    Join Date
    Feb 2014
    Posts
    2
    Rep Power
    0

    Default Prioritised Shared Resource Design Pattern - Advice

    I have a re-occuring problem on multiple Java based projects I am involved in that would appear to be ripe to be addressed by a common design pattern.

    The premise of the problem is: There is a need for concurrent data processing that requires use of a shared resource set which is persisted in a database.

    The solution should: Ensure data integrity, provide high performance and ensure there are no deadlocks.

    The expected behaviour is: A thread is able to query the database and to be returned the next highest priority resource and then within the same transaction is able to persist a modified state of that resource. Within the lifecycle of that thread, an additional resource is able to be persisted in certain situations.

    Constraints: The current persistence technology adopted is a schemaless DB which only offers database level locking.


    With the exception of the above constraint, the above problem appears to be quite a common problem so I'd appreciate knowing if there are any related enterprise/architecture design patterns which optimally solve this problem?

    Also interested to know the technology stack that you would use to meet the solution requirements and expected behaviour?

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,029
    Rep Power
    6

    Default Re: Prioritised Shared Resource Design Pattern - Advice

    Also interested to know the technology stack that you would use to meet the solution requirements and expected behaviour?
    A reasonable database with a proper database design. If you don't have that, you're basically waiting for a ship to sink.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    markb_1984 is offline Member
    Join Date
    Feb 2014
    Posts
    2
    Rep Power
    0

    Default Re: Prioritised Shared Resource Design Pattern - Advice

    I was looking for a more detailed response along the lines of suggesting applicable architectural design patterns that would meet the above requirements as well as suggestions on the technology stack, which of course would include the persistence tier.

Similar Threads

  1. singleton design pattern
    By willemjav in forum New To Java
    Replies: 2
    Last Post: 07-12-2013, 01:06 PM
  2. Advice on Java programming design
    By helen1974 in forum New To Java
    Replies: 5
    Last Post: 11-01-2012, 06:43 PM
  3. Quick Advice on bad design
    By garnaout in forum New To Java
    Replies: 1
    Last Post: 05-08-2012, 08:53 PM
  4. What's the design pattern(s) that describes...
    By starbuck in forum Advanced Java
    Replies: 3
    Last Post: 03-31-2012, 08:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •