+ All Categories
Home > Technology > Hazelcast Striim Hot Cache Presentation

Hazelcast Striim Hot Cache Presentation

Date post: 15-Apr-2017
Category:
Upload: steve-wilkes
View: 49 times
Download: 0 times
Share this document with a friend
32
Hazelcast Striim Hot Cache Powered By Striim CDC
Transcript
Page 1: Hazelcast Striim Hot Cache Presentation

HazelcastStriimHotCachePoweredByStriimCDC

Page 2: Hazelcast Striim Hot Cache Presentation

Your Presenters Today

Steve WilkesCTO / Founder

Striim

Viktor GamovSenior Solutions Architect

Hazelcast

Page 3: Hazelcast Striim Hot Cache Presentation

The Cache Inconsistency Issue

App ServerApp ServerApp Server

YouHaveAnApplicationThatUsesaDatabaseToStoreandRetrieveInformation

Application

Page 4: Hazelcast Striim Hot Cache Presentation

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

InThisExampletheAppisanOnlineStoreandPartoftheDataIncludesProductInventory

Application

Page 5: Hazelcast Striim Hot Cache Presentation

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

ToSpeedUpPageResponsesYouUseanIn-MemoryHazelcastCache

Application

HazelcastHazelcast

Page 6: Hazelcast Striim Hot Cache Presentation

App

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

ButOtherApplicationsorBatchUpdatesAlsoModifytheDatabaseOutsidetheCache

Batch

Add/RemoveInventory

Application

HazelcastHazelcast

Page 7: Hazelcast Striim Hot Cache Presentation

App

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

LeadingtotheCacheBeingOut-of-SyncOrInconsistentwiththeDatabase

HazelcastHazelcast Batch

Add/RemoveInventory

Application

Page 8: Hazelcast Striim Hot Cache Presentation

App

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

AndReflectedThroughInaccurateValuesBeingPresentedinTheApplication

HazelcastHazelcast Batch

Add/RemoveInventory

Application

Page 9: Hazelcast Striim Hot Cache Presentation

App

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

TheCacheEvictionorRefreshPolicyDictatestheWindowofInconsistency

HazelcastHazelcast Batch

Add/RemoveInventory

EvictAfter10Minutes

Application

Page 10: Hazelcast Striim Hot Cache Presentation

App

The Cache Inconsistency Issue

App ServerApp ServerApp Server

BuyStuff CurrentInventory

WhatYouNeedIsaWaytoUpdatetheCacheWhenevertheDatabaseChanges

HazelcastHazelcast Batch

Add/RemoveInventory

Application

?

Page 11: Hazelcast Striim Hot Cache Presentation

That’s Where Striim Comes In

Striim provides

Streaming Integration and Intelligence

enabling companies to Make data useful the instant it’s born.

Page 12: Hazelcast Striim Hot Cache Presentation

Striim Handles the Hard Bits

CONTINUOUSCOLLECTION

SUPPORTING MULTIPLE SOURCES

ADDRESSING SCALE,

FAILURES

DISTRIBUTED GRID

/PERSISTENCEMANAGEMENT

SHARDING /SCALING

OVER LARGE STREAMING

DATA VOLUMES

DISTRIBUTED RESULTS CACHE

HIGH READ THROUGHPUT

INTEGRATION INTO MULTIPLE TARGETS AND

DATA FORMATS

REALTIME VISUALIZATION

REALTIME ALERTS

SIMPLE DECLARATIVE

INTERFACE TO DELIVER DATA

DRIVEN APPS✔ ✔ ✔ ✔ ✔

Collect Process Deliver

App Developersfocus on business logic

CONTINUOUS

✔ ✔ ✔ ✔ ✔

Page 13: Hazelcast Striim Hot Cache Presentation

Databases &Data Warehouses

Messaging

Big Data &NOSQL

Cloud

FilesDatabases

Log files

Sensors

Messaging

ExternalContext

Filtering Enrichment

Aggregation

Transformation

Windowing

ContinuousQueries

STRE

AMIN

G IN

TEG

RATI

ON

Streaming CDC

Parallel LogCollection

Edge Processing

Continuous Event Collection

Streaming Integration

Page 14: Hazelcast Striim Hot Cache Presentation

Databases &Data Warehouses

Messaging

Big Data &NOSQL

Cloud

FilesDatabases

Log files

Sensors

Messaging

ExternalContext

Filtering Enrichment

Aggregation

Transformation

Windowing

ContinuousQueries

STRE

AMIN

G IN

TEG

RATI

ON

Streaming CDC

Parallel LogCollection

Edge Processing

Continuous Event Collection

STRE

AMIN

G

INTE

LLIG

ENCE

Alerts

ResultsReal

-tim

eD

ashb

oard

s

Correlation Detection MatchingTriggers

Streaming Intelligence

Page 15: Hazelcast Striim Hot Cache Presentation

Design Flows Analyze Deploy

Visualize Monitor

One Consistent Easy-to-Use Distributed Platform

Page 16: Hazelcast Striim Hot Cache Presentation

App

Cache Inconsistency Solved

App ServerApp ServerApp Server

BuyStuff CurrentInventory

TheHazelcastStriimHotCacheSolutionUsesCDCtoSynchronizetheCacheinReal-Time

Batch

Add/RemoveInventory

Application

HotCacheUpdatesInms

HazelcastHazelcast

CDC

Page 17: Hazelcast Striim Hot Cache Presentation

DatabasesWriteAllOperationstoaSetofTransactionLogsforRecovery/OtherPurposes

CDC

TransactionLogs

DB

How Change Data Capture (CDC) Works

Page 18: Hazelcast Striim Hot Cache Presentation

CDC

TransactionLogs

DB

How Change Data Capture (CDC) Works

InsteadofUsingTimestampsorTriggersCDCReadsTheseLogsandCollectsOperations

Page 19: Hazelcast Striim Hot Cache Presentation

Delete Update

CDCDMLInsertUpdate

Delete

TransactionLogs

110100

001101

010011

InsertDB

How Change Data Capture (CDC) Works

WhenDMLOperationsOccurTheyAreWrittentotheLogandCapturedasEventsbyCDC

Page 20: Hazelcast Striim Hot Cache Presentation

Delete Update

CDCDMLInsertUpdate

Delete

TransactionLogs

110100

001101

010011

InsertDB

How Change Data Capture (CDC) Works

TheseEventsCanThenBeUsedtoUpdatetheCacheandSynchronizeitinReal-Time

Page 21: Hazelcast Striim Hot Cache Presentation

TABLE PRODUCT_INV

SKU INTEGER (PK)

STOCK DECIMAL

NAME VARCHAR(20)

LAST_UPDATE TIMESTAMP

PIC BLOB

public classProductInv {public long sku;public double stock;public Stringname;public DatelastUpdated;public byte[]picture;

}

Example Hot Cache Implementation

DatainthePRODUCT_INVDatabaseTableisRepresentedintheCacheasProductInv Class

HazelcastHazelcast

Page 22: Hazelcast Striim Hot Cache Presentation

TABLE PRODUCT_INV

SKU INTEGER (PK)

STOCK DECIMAL

NAME VARCHAR(20)

LAST_UPDATE TIMESTAMP

PIC BLOB

public classProductInv {public long sku;public double stock;public Stringname;public DatelastUpdated;public byte[]picture;

}

Example Hot Cache Implementation

TheMappingBetweentheTwoisRepresentedThroughanORMXMLFile

HazelcastHazelcast

<entity name="prodInv" class="com.customer.vo.ProductInv"><table name="test.PRODUCT_INV"/><attributes>

<id name ="sku" attribute-type="long"><column nullable="false" name="SKU"/>

</id><basic name="stock" attribute-type="double">

<column nullable="false" name="STOCK"/></basic><basic name="name" attribute-type="String">

<column name="NAME"/></basic><basic name="lastUpdated" attribute-type="java.util.Date">

<column name="LAST_UPDATED"/></basic><basic name="picture" attribute-type="binary">

<column name="PIC"/></basic>

</attributes></entity>

Page 23: Hazelcast Striim Hot Cache Presentation

Example Hot Cache Implementation

UsingStriimYouCreateaNewApplicationUsingaCDCtoHazelcastTemplate

Page 24: Hazelcast Striim Hot Cache Presentation

Example Hot Cache Implementation

StriimStepsYouThroughSettingUpYourDBConnectionandChecksCDCisWorkingProperly

Page 25: Hazelcast Striim Hot Cache Presentation

Example Hot Cache Implementation

YouThenSelecttheTablesYouWantResultinginaChangeDataStream

Page 26: Hazelcast Striim Hot Cache Presentation

Example Hot Cache Implementation

NextYouConfiguretheHazelcastConnectionandORMFile– WhichWeValidateForYou

Page 27: Hazelcast Striim Hot Cache Presentation

Example Hot Cache Implementation

ThisisUsedtoGenerateaHazelcastTargetwithintheStriimApplication

Page 28: Hazelcast Striim Hot Cache Presentation

Example Hot Cache Implementation

TheResultingStriimDataFlowHasEverythingNeededtoKeepHazelcastSynchronized

Page 29: Hazelcast Striim Hot Cache Presentation

Custom Monitoring of Hot Cache Solution

AdditionalAnalyticsFlowsinStriimCanProvideReal-TimeMonitoringDashboardsandMore

Page 30: Hazelcast Striim Hot Cache Presentation

Live Demo of Hazelcast Striim Hot Cache

Page 31: Hazelcast Striim Hot Cache Presentation

Questions?

Page 32: Hazelcast Striim Hot Cache Presentation

Want To Know More?


Recommended