Prevent multiple users from updating coherence cache data at the same time

Hi,
I have a web application which have a huge amount of data instead of storing the data in Http Session are storing it in coherence. Now multiple groups of users can use or update the same data in coherence. There are 100's of groups with several thousand users in each group. How do I prevent multiple users from updating the cache data. Here is the scenario. User logs-in checks in coherence if the data there and gets it from coherence and displays it on the ui if not get it from backend i.e. mainframe systems and store it in coherence before displaying it on the screen. Now some other user at the same time can also perform the same function and if don't find the data in coherence can get it from backend and start saving it in coherence while the other user is also in the process of saving or updating. How do I prevent this in coherence. As have to use the same key when storing in coherence because the same data is shared across users and don't want to keep multiple copies of the same data. Is there something coherence provides out-of-the-box or what is best approach to handle this scenario.
Thanks

Hi,
actually I believe, that if we are speaking about multiple users each with its own HttpSession, in case of two users accessing the same session attribute in their own session, the actually used cache keys will not be the same.
On the other hand, this is probably not what you would really like, you would possibly like to share that data among sessions.
You should probably consider using either read-through caching with the CacheLoader implementor doing the expensive data retrieval (if the data to be cached can be obtained outside of an HTTP container), or side caching with using Coherence locks or entry-processors for concurrency control on the data retrieval operations for the same key (take care of retries in this case).
Best regards,
Robert

Similar Messages

  • Prevent multiple users from accessing a list item at the same

    Hi,
    I have a scenario where, if a list item is opened (in edit mode) by one user, no other user should able to access it. I mean to checkin/checkout kind of thing which is not possible with sharepoint lists.
    One thing that I have done through infopath 2010, by setting a rule on form load. On form load, set a field's value Assigned To to Current User and then submit data. In case I am getting value of Assigned To getting stored in the list as a new record
    along with all the values from previous fields.
    I want to update the same record not the duplicate record.
    Please suggest a solution for it. 

    Hi
    add a new column to your list COL_EDITING( type yes, no )
    Default value : NO
    Customize your editform.aspx attached to your form, when it open
    A. analyze if COL_EDITING=NO
    If it isn;t alert  an error message ( the item is in edit mode by another user  )  , and close the page
    if it is --->
    B to fill COL_EDITING=YES
    and next permit user to fill the fields in the form
    Also
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • Remote and direct update of master data at the same time

    Hello
    Is it possible to do remote and direct update of master data at the same time? If yes where it could be used?
    Thanks

    Hi,
    What do you mean by Remote Update ?
    regards
    Happy Tony

  • How can i prevent a user to login more than once at the same time ?

    Supose there are a user , D .
    and i am using thread and socket in the application.
    once a user logined in , it will open a new socket .
    Well , but D is trying to login twice at the same time ... and my thread is opening two socket for him .... , how can i prevent that ?
    *thanks for help and sorry for my poor english                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    Thanks for reply
    ya ~ i've got a solution ~
    actually i am doing a server for mobile phone to get data. Sometime 1 single ID will send twice a message (usually nokXX mobile phones) .. i use milli sec to check those message ....
    n it seems working ....

  • Can multiple users work on a Numbers spreadsheet at the same time

    We want to acess and edit a spreadsheet with two users in different locations using iPads. Not at exactly the same time but without having to close out of the app like Excel.

    I've seen changes I've made on my iPad show up on the same document that's been open all the time on my Mac, which suggests it might be possible. However, I've also had a small number of notifications that documents on different devices are not in sync with each other. So while it might have the potential to work, I'd be inclined to think it would be quite unreliable.

  • Prevent multiple users from editing/approving the same form SPD 2013,SP 2013

    Hello all, I have a workflow with a to do task, the task is assigned to a group so any of the users in that group can go in and do a quality check on form data and approve it.  How do I prevent multiple users from working on the
    same form? do I just require check out? or is there a way to notify the rest of the group that a user has already started the quality check.

    The "Require Checkout" option is your best bet.  You can also enable the auto checkout on edit option to allow minimal effort on the side of the user.  Other users will then get the error message stating the item is checked out, if they try to
    edit it.
    If you'd like, you could add a workflow to the task list that triggers when something is changed.  That workflow can check if the item is checked out and if so, email the other users assigned to the task.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • How can I do to acquire and save date in the same time and in the same file when I run continual my VI without interrupti​on.

    I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
    So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
    Thank you in advance.
    Regards,
    Attachments:
    HP8563E_Query_Amplitude.vi ‏37 KB

    Hi,
    Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
    So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
    I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
    So I want to acquire 1 time amplitude from spectrum analyser each 5
    period of the signal that I am acquiring from parallel port.
    So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
    Here is a new algorithm.
    1) i=0 (counter: number of period)
    2) I read value from In Port
    3) If I acquire a period
    i= i+1 (another period)
    4) If i is multiple of 5 (If I read 5 period)
    acquire 1 time amplitude and write to the same
    file this amplitude and the corresponding distance
    Distance = 12*i). Remember each period of signal
    Corresponds to 12 Inches).i has to take these
    values: 5,10,15,20,25,35,40,45,50,55,60............
    5) Back to 2 if not stop.
    Thank you very much for helping me.
    Regards,
    Attachments:
    Acquire_Amplitude_00.vi ‏59 KB
    Figure_Algorithm.doc ‏26 KB

  • Exporting from FCP and using Compressor at the same time?

    Is it ok to export from FCP and use compressor at the same time? I am exporting a Self-Contained, Current Setting Quicktime Movie, and using Compressor to compress a similar HDV file to Mpeg2?

    Only in FCP 7.

  • How to prevent certain Users from deleting a resource while in the project?

    We are currently using P6.2 client; We are setting up a new resource dictionary and have been searching to find a way to prevent certain users from deleting resources while in the project. Is there a way to do that? I have created Global profiles and Project profiles under the Admin security profile and have tried clicking off of rights to delete a resource but when I log into as that user I can still delete the resource. Please Help!

    Are you talking about preventing users from deleting resource assignments within a project? Or preventing them from deleting resources from the global resource dictionary?
    For global resource dictionary in Global Profile you would turn off:
    -Delete Resources
    And likely:
    -Add resources
    -Edit Resources
    -Edit Roles
    -Edit Resource Calendars
    For resource assignments on activities in Project Profiles you would turn off:
    -Add/Edit Project Activities Except Relationship
    Note: this will disable more then just the ability to alter resource assignments.

  • IS there a way to load and purchase different photos from iPhoto and ship them at the same time? the only way that I can find is to purchase each photo (or multiple of one) at a time, which increases the cost of shipping, as I want to get one print of 20

    Is there a way to order multiple different prints in any quantity from Iphoto? it appears currently like I would have to ship each separately, even if only one print... is there a way around this so I can can get several DIFFERENT prints of any quantity and ship all at the same time?

    Sure - easiest way is to make an album for photos you want to order and drag photos to it - when it is complete open the album, select all and order
    LN

  • Multiple hierarchial structuring for Accounts that apply at the same time to a document

    Use Case:
    There are 2 ways of logically grouping entities for our UCM Accounts permission:
    For external Partner users (one  taxonomy applies) 
    @Corp/Partner1, @Corp/Partner1(Region 1)   are valid accounts that can be assigned to users so that they get access to documents owned by all their Subsidiary companies or specifically their company - Partner in Region 1.
    For internal users (both taxonomy applies),
    @Corp/Region1, @Corp/Region 1/Partner 1(Region 1)   are valid accounts that can be assigned to be users so that they get access to documents owned by all Partners in Region1 or  specifically Partner1  in Region 1.
    @Corp/Partner1, @Corp/Partner1(Region 1)   are valid accounts that can be assigned to users so that they get access to documents owned by all the Subsidiary companies of Partner 1 or specifically Partner in Region 1.
    Question:
    At the document level in UCM, looks like only one Account structure can be tagged. Given that,
    How can we deign this using Accounts so that both taxonomies are supported at the same time to provision security for both internal and external users?
    Do we have to use ACLs (Role Entity ACL component) as that is the only one that seems to be support multiple roles with OR condition? If so, can we totally bypass Accounts to only use Role Entity ACLs without performance impact?

    Hi user11282566
    Please refer http://docs.oracle.com/cd/E23943_01/doc.1111/e10792/c05_security.htm#CSMSP569 and it makes the statement mentioned below
    When accounts are used, the account becomes the primary permission to satisfy before security group permissions are applied. You can also think of a user's access to a particular document as the intersection between their account permissions and security group permissions.
    Ideally, you can use any of the combination. But when you enable accounts, security model gets update like - every content should belong to some security group and account. And account should be the primary condition to satisfy before security group permissions are evaluated. So this might make you different security groups for different context based on your requirement. Please take care of this aspect.
    I've not used Oracle Document Cloud yet, so cant comment on security model. Below links from a-team might provide you some pointers
    http://www.ateam-oracle.com/integrating-with-documents-cloud-using-a-text-editor-as-an-example/
    http://www.ateam-oracle.com/calling-oracle-documents-cloud-service-rest-apis-from-webcenter-content-custom-components/
    If you''ve an instance you can sign-up for oracle document cloud and try some test cases.

  • How to acquire multi-camera images from one PCI-1409 card at the same time?

    What do I need to do? The hardware or software?
    Can you provide me your solution or 3rd-party ones?

    If you need to aquire images at exactly the same time it will require using two 1409 boards and trigggering the camera simultaneously from the same signal. If you use one board with multiple camera, you will not be able to get images at exactly the same time. This is because there is only one A to D converter on the board which must be shared between channels, so you will have a slight delay of approximately one frame from when the camera is reading one channel to the next. If you trigger the cameras simultaneously, they will both be sending information into the baord, but only one can be read at a time, so the second would not be taken in. Below is a link to approaches for coinnecting multiple cameras:
    http://digital.ni.com/public.nsf/3efedde4322fef19862567740067
    f3cc/ff3c5c368e34a12286256ac6004bd844?OpenDocument
    I hope this helps!
    Chris D

  • Can you manage a single library from two Pcs with iTunes at the same time?

    Dear all,
    I have a laptop and a desktop pc. Currently all my music and itunes are on the laptop. My laptop hard disk is filling up, so i want to move all the music off to the desktop. And yes i'd like to keep all the music in one location on the desktop pc. But ideally i'd like to be able to import new music to the library from both PCs, and also be able to modify the playlists and other details from both PCs. I looked at Sharing but that doesn't seem to let the non-owner to change the playlists....
    Any ideas how i can set this up?
    Thanks a lot, Dave

    The AE has multiple ports that can be expanded using hubs that we can hopefully connect the existing 3 TV sources, and can receive / transmit to multiple computers but can it operate the iTunes, internet distribution, and TV output (with switching TV inputs via the iMac & AE Utility) at the same time or do we need multiple AEs and another computer?
    The AirPort Extreme base station (AEBS) does not have a TV or video output.
    The AEBS, just like any other router, supports multiple clients simultaneously. Of course there is always bandwidth limitations for any device. So in theory the AEBS can support all of that. In reality the performance of each service will depend on the bandwidth used by each and the bandwidth available. This is no different than any router.

  • How do I delete radio shows from iTunes and my iPod at the same time?

    I have a lot of old time radio shows on my iPod. First, I copy them from iTunes to listen to on my iPod. When I am done, I want to delete BOTH of them at the same time. I am trying to avoid having to search for both because, for some reason, I cannot search both the iTunes and the iPod content at the same time. I obviously do not want them synced. In the previous version of iTunes, I was able to do with a key command. Now, I cannot figure out how to do it. ( I really wish there was a way I could color each selection so that I can find which ones I copied to the iPod easily. You know, just like how it's done in the operating system, where we can add the color label.)
    Anyway, is there a way to do what I want, or am I stuck with searching separately, and then deleting them separately? Laborious indeed. Oh, yes, the duplicate function doesn't work here because you can't search both the iPod and iTunes at the same time.
    Thanks in advance to all you smartie-pants out there.

    when you purchas e a tv show from the itunes music store and then sync it to the ipod. there will appear a new name in th evideo subsection of videos on the ipod called tv shows thats where they will be and where you can watch the,.
    GFF

Maybe you are looking for