Giter Site home page Giter Site logo

charliemblack / basic-gemfire-read-write-through Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 367 KB

This repo is for the content I created in a youtube video. In the video I walked through and coded up the read/write through pattern with GemFire.

License: Apache License 2.0

Java 100.00%

basic-gemfire-read-write-through's Introduction

Implementing The Read / Write through pattern With GemFire

This project contains the material I created in a youtube video. In the video I walked though implementing the read and write portions of this pattern.

alt text

The read/write through pattern allows GemFire to potentially lazy load and cache data from a back end store. In the video I used Postgres as the backend data source, but the back end store could be nearly any thing that one would like to cache.

We can also combine the various storage patterns to enable GemFire to satify nearly any application requirements.

Maybe we are caching for performance or we caching for cost - GemFire can support it. The good example for caching for cost is mainframes where each call to the mainframe results in extra MIPS.

The Read Pattern

In the read pattern we are using GemFire to cache results from the back end system. In the example below we are using JDBC to retrive data from some data base.

Once we have the result GemFire uses that value and the provided key and stores it in the region the cache loader is associated with.

alt text

The Write Pattern

In the write pattern we use GemFire to write the result to the backend data source. Once write has successfully been completed GemFire then commits the value to the regions associated with the cache writer.

alt text

YouTube

If you would like a guided walk through and coding up see the following youtube video:

https://youtu.be/jWDePZcjTH4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.