1

I found this picture from Internet, it is about Gemfire structure.

I am confused how does Gemfire synchronous read or write to other data sources?

I didn't find any learning materials about this.

Anyone who can tell me ? Thanks so much.

Shirley Sun
  • 63
  • 2
  • 5

1 Answers1

2

This synchronous / asynchronous reads and writes are done through Events and Listeners, which allows you to plugin your own application code into the architecture. As an example, the CacheLoader is the ideal example of a synchronous read. You can get more information about this from http://geode.apache.org/docs/guide/11/developing/events/chapter_overview.html. Hope this helps. Cheers.

Juan Ramos
  • 1,421
  • 1
  • 8
  • 13
  • Thank you. It helps me a lot. But it's because I am still a bird programmer, could you please tell me where can I get a detail example ? – Shirley Sun Jul 01 '17 at 14:12
  • Hey @ShirleySun, did you have a look at [Cache Event Handler Examples](http://gemfire.docs.pivotal.io/geode/developing/events/cache_event_handler_examples.html), [Implementing an AsyncEventListener for Write-Behind Cache Event Handling](https://geode.apache.org/docs/guide/11/developing/events/implementing_write_behind_event_handler.html) and [Implementing Cache Event Handlers](http://geode.apache.org/docs/guide/11/developing/events/implementing_cache_event_handlers.html)?. Are you looking for something more specific?. – Juan Ramos Jul 03 '17 at 07:30