View Full Version : Write-behind example
Oct 31st, 2010, 10:09 AM
We are currently experimenting with spring gemfire and are looking for an example with write-behind functionality. Loader and writer we have successfully tested but not the write-behind (gateway)... is there an example of what to implement and how to configure it within a spring-context?
Oct 31st, 2010, 10:22 AM
No, not currently. Have you looked at the GemFire docs? Is there anything Spring specific that you're interested in?
Nov 2nd, 2010, 01:58 AM
Well yes... as stated in the first post for me it's not clear how to configure such a component within the spring context. For cache regions there is a spring factory bean where you can configure cacheWriter, cacheLoader, etc. but no component for write-behind... so my question is:
Is it possible to manage such components within the spring context (how?) or not? I didn't find any factory for setting up a gateway hub for example... If so is there a spring-specific class to extend like WiringDeclarableSupport?
There is an example of how to do it in gemfire (http://community.gemstone.com/display/gemfire60/Database+write-behind+and+read-through).
Thanks and kind regards,
Dec 28th, 2010, 09:27 AM
How can cache-listener be used for delayed-write or write-behind??
Sending a message to write and not waiting for an acknowledgement.
GemFire supports three types of replication: no ack, ack and ack with locks.
combining some features in the configuration??:cool:;)
Mar 18th, 2011, 05:19 AM
I really like to think about your question.
Apr 6th, 2011, 06:30 AM
Loader and writer has successfully tested but not the write-behind. It is not easy to solve. I hope to get a solution.:D
Apr 13th, 2011, 02:59 PM
I also want more specific to know about "Write-behind example" in deep.:rolleyes:
May 27th, 2011, 03:58 AM
To implement a write-behind cache listener. First step is configure gateway hub with no incoming port specification and gateway with no endpoint. Inside gateway you define gateway listener which will be used for write-behind functionality. Events for this listener are queued and delivered in batched List to this listener processEvent method. Second step is to enable gateway queueing for the regions whose events you want to handle:
Your XML configuration should looks like this:
<gateway-queue ... />
I hope it's help you.
Kiril Menshikov (http://www.kiril.me)
Data Grid Architect at Mirantis (http://www.mirantis.com)
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.