customer event hub – a modern customer 360° view with datastax enterprise (dse)

41
BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENF HAMBURG KOPENHAGEN LAUSANNE MÜNCHEN STUTTGART WIEN ZÜRICH Customer Event Hub Customer 360 ° view with DataStax Enterprise (DSE) Guido Schmutz 4.7.2017 @ gschmutz guidoschmutz.wordpress.com

Upload: guido-schmutz

Post on 24-Jan-2018

200 views

Category:

Technology


1 download

TRANSCRIPT

Page 1: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENF HAMBURG KOPENHAGEN LAUSANNE MÜNCHEN STUTTGART WIEN ZÜRICH

Customer Event HubCustomer 360° view with DataStax Enterprise (DSE)

Guido Schmutz – 4.7.2017

@gschmutz guidoschmutz.wordpress.com

Page 2: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Guido Schmutz

Working at Trivadis for more than 20 yearsOracle ACE Director for Fusion Middleware and SOAConsultant, Trainer Software Architect for Java, Oracle, SOA andBig Data / Fast DataHead of Trivadis Architecture BoardTechnology Manager @ Trivadis

More than 30 years of software development experience

Contact: [email protected]: http://guidoschmutz.wordpress.comSlideshare: http://www.slideshare.net/gschmutzTwitter: gschmutz

2

Page 3: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

COPENHAGEN

MUNICH

LAUSANNEBERN

ZURICHBRUGG

GENEVA

HAMBURG

DÜSSELDORF

FRANKFURT

STUTTGART

FREIBURG

BASEL

VIENNA

With over 600 specialists and IT experts in your region.

14 Trivadis branches and more than600 employees

200 Service Level Agreements

Over 4,000 training participants

Research and development budget:CHF 5.0 million

Financially self-supporting andsustainably profitable

Experience from more than 1,900 projects per year at over 800customers

3

Page 4: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Agenda

4

1. Customer 360° View – Introduction2. Customer 360° View – Challenges3. Customer 360° View – DataStax Enterprise (Graph) to the rescue

Page 5: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View - Introduction

5

Page 6: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Why Customer 360° View?

“Get closer than ever to your

customers. So close that you tell

them what they need well before

they realize it themselves.”

Steve Jobs, Apple

q Enhance customer service

q Provides real-time personalization

q Opens doors to new applications

q Increases security

q Lowers operational costs

q Increases operational efficiency

6

Page 7: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360°: Experience Expectations

7

Page 8: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

“The Amazon effect” – why can’t I do .... as easy as buying a product on Amazon

8

Each time a customer is exposed to an improved digital experience, their engagement expectations are reset to a new higher level.

Source: Forrester

Page 9: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360°: Experience Expectations

Consistent

Acrossallchannels,brandsanddevices

Personalized

Toreflectpreferencesandaspiration

Relevant

Inthemomenttocustomer’sneedsandexpectations

Contextualized

Topresentlocationandcircumstances

9

Page 10: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360 – Key Use Cases

• Customer micro segmentation

• Next Best Offer• Campaign Analytics• Geo-Location

Analytics• Recommendation

Models

• Churn Modeling & Prediction

• Rotational / Social Churn

• Customer Lifetime Value

• Sentiment Analytics• Price Elasticity

Modeling

• Proactive Care Dashboard

• Customer Lifetime Value

• Subscriber Analytics• QoS Analytics• Real-Time Alerts

Target Marketing & Personalization

Churn Prevention & Customer Retention Proactive Care

10

Page 11: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° - What do I need to know?

Who are you?

Where are you?

What have you purchased?

What content do you prefer?

Who do you know?

What can you afford?

What is your value to the business?

How / why have you contacted us?

11

Page 12: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

From Static to Dynamic, Real-Time Micro-Segmentation

AgeGenderAverage SpendPrice PlansUsage HistoryData, Voice, TextBilling HistoryDevice Upgrade

Traditional Segmentation

AgeGenderAverage SpendPrice PlansUsage HistoryData, Voice, TextBilling HistoryDevice Upgrade

Device HistoryOther products / servicesBundling preferencesOffer HistoryCampaign Adoption HistoryCall Center Tickets

LocationSocial Influence

Applications UsedContent Preferences

Usage DetailsRoaming Analysis

Travel Patterns

QoS HistoryHousehold Analysis

Lifetime ValueChurn Score

Clickstream InfoChannel Preferences

Survey

Real-Time Micro-Segmentation

12

Page 13: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

From Static to Dynamic, Real-Time Micro-Segmentation

AgeGenderAverage SpendPrice PlansUsage HistoryData, Voice, TextBilling HistoryDevice Upgrade

Traditional Segmentation

AgeGenderAverage SpendPrice PlansUsage HistoryData, Voice, TextBilling HistoryDevice Upgrade

Device HistoryOther products / servicesBundling preferencesOffer HistoryCampaign Adoption HistoryCall Center Tickets

LocationSocial Influence

Applications UsedContent Preferences

Usage DetailsRoaming Analysis

Travel Patterns

QoS HistoryHousehold Analysis

Lifetime ValueChurn Score

Clickstream InfoChannel Preferences

Survey

Real-Time Micro-Segmentation

13

IndividualizationEngaging customers as a segment of one in real-time by listening, capturing, measuring, assessing, and addressing intent across every enterprise touchpoint.

Source: Forrester

Page 14: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View - Challenges

14

Page 15: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View - Traditional Flow Diagram

Enterprise Data Warehouse

ETL / Stored Procedures

Data Marts / AggregationsLocation

Social

Clickstream

Segmentation & ChurnAnalysis

BI Tools

Marketing Offers

Billing &Ordering

CRM / Profile

MarketingCampaigns

15

Page 16: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View - Traditional Flow Diagram

Enterprise Data Warehouse

ETL / Stored Procedures

Data Marts / AggregationsLocation

Social

Clickstream

Segmentation & ChurnAnalysis

BI Tools

Marketing Offers

Billing &Ordering

CRM / Profile

MarketingCampaigns

Limited Processing

Power

Does not model easily to traditional

database schema

Limited Processing

Power

Storage Scaling

very expensive

Based on sample /

limited dataLoss in Fidelity

Other / New Data Sources

High Voume

and Velocity

16

Page 17: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Key Challenges in Driving a Customer 360° ViewData Silos

New Data Sources Costs of Data Processing

Data Volumes

• Multiple Data Silos• Often store overlapping and

conflicting information

• Data growing rapidly• Internet of Things will add to

that substantially

• Semi/Un-Structured Data Sources

• Streaming / Real-time data• Critical for building a true

360° view

• Cost prohibitive• Cost of storing data in

relational database systems per year

Clickstream Location/GPS

Call centerRecords

Social Media

17

Page 18: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View: Why status quo won’t work?

• static version of the customer profile in their data warehouse• Mainly structured data• Only internal data• Only “important” data• Only limited history

• Activity data – clickstream data, content preferences, customer care logs are kept in siloes or not kept at all

Data Analyst

Data Analyst

Data Analyst

Data Analyst

Data Analyst

DetailedCustomerActivityDatasitsinsilos!

18

Page 19: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer Journey through multiple “Siloed Systems”

19

SocialMedia

CallCenter

ComplaintManagement

Marketing

Coupons

Warehouse CRM

Shipping

Billing

OrderProcessing

Web Application

Page 20: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer Journey through multiple “Siloed Systems”

20

SocialMedia

CallCenter

ComplaintManagement

Marketing

Coupons

Warehouse CRM

Shipping

Billing

OrderProcessing

Web Application

Page 21: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View – DataStaxEnterprise (Graph) to the rescue

21

Page 22: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Why using Graph for Customer 360° View

22

Traditional RDBMS• Multiple Data Locations => siloes• Not all information related• difficult to access all information and relate

to each other

Graph Database• Connect all customer-related information in

one central place• Support for analytics on graph• Performance & Scalability

PartnerIdFirstNameLastNameBirthDateProfileImageURL

IdCustomerIdWhenWhereTypeDescription

Contacts

AddressIdPartnerIdStreetStreetNrZipCodeCityCountry

IdNamePriceDescriptionImageURL

Products

CustomerIdProductId

Order

IdCustomerIdWhenWhereInteractionTypeDescription

Customer Service

IdProductIdCommentUserId

Product Reviews

IdPartnerIdTwitterIdFacebookId

Customer

Geo Point

Customer

Address

Product

ownerOf (since)

interestedIn (since, degree)

lives (since)

ActivityparticipatesIn Termuses

uses

Employee

interactsWith

reference

idname

idwhenwheretext

idfirstNamelastNamebirthDateprofileImageURL

usesidnameimageURL

idstreetstreetNrzipCodecity

idnamealternateNameslocationpopulationelevation

Country

neighbour

belongsTo

idnameiso2iso3isoNumericcapitalareapopulationcontinent

uses

ActivityType

idname

belongsTo

idname

at

knows(since)

mentions

uses

Page 23: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Customer 360° View - Example

23

Page 24: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Geo Point

Customer

Address

Product

ownerOf (since)

interestedIn (since, degree)

lives (since)

ActivityparticipatesIn Termuses

uses

Employee

interactsWith

reference

idname

idwhenwheretext

idfirstNamelastNamebirthDateprofileImageURL

usesidnameimageURL

idstreetstreetNrzipCodecity

idnamealternateNameslocationpopulationelevation

Country

neighbour

belongsTo

idnameiso2iso3isoNumericcapitalareapopulationcontinent

uses

ActivityType

idname

belongsTo

idname

at

knows(since)

mentions

uses

Customer 360° View - Example

24

Page 25: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Hadoop ClusterdHadoop ClusterDSE Cluster

Batch Data Ingestion into Customer Hub

Billing &Ordering

CRM / Profile

MarketingCampaigns

Location

Social

Clickstream

Sensor Data

WeatherData

MobileApps

Emails

v

File Import /SQL Import

Cassandra DSE Graph

25

highlatency

Event Stream

Page 26: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Batch Data Ingestion into Customer Hub

DSEGraphDSE

GraphLoaderRDBMS

GroovyScript

ClickStream

26

Geo Point

Customer

Address

Product

ownerOf (since)

interestedIn (since, degree)

lives (since)

ActivityparticipatesIn Termuses

uses

Employee

interactsWith

reference

idname

idwhenwheretext

idfirstNamelastNamebirthDateprofileImageURL

uses

idnameimageURL

idstreetstreetNrzipCodecity

idnamealternateNameslocationpopulationelevation

Country

neighbour

belongsTo

idnameiso2iso3isoNumericcapitalareapopulationcontinent

uses

ActivityType

idname

belongsTo

idname

at

knows(since)

Transformation CSV/JSON

PartnerIdFirstNameLastNameBirthDateProfileImageURL

IdCustomerIdWhenWhereTypeDescription

Contacts

AddressIdPartnerIdStreetStreetNrZipCodeCityCountry

IdNamePriceDescriptionImageURL

Products

CustomerIdProductId

Order

IdCustomerIdWhenWhereInteractionTypeDescription

Customer Service

IdProductIdCommentUserId

Product Reviews

IdPartnerIdTwitterIdFacebookId

Customer

Real-Time Insights?

Page 27: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Real-Time Data Ingestion into Customer Event Hub

Microservice Cluster

Microservice State

{}

API

Stream Processing Cluster

StreamProcessor

State

{}

API

Billing &Ordering

CRM / Profile

MarketingCampaigns

Location

Social

Clickstream

Sensor Data

WeatherData

MobileApps

Email

File Import / SQL Import

EventStream

Event Hub

Event Hub

Event Hub

EventStream

EventStream

Hadoop ClusterdHadoop ClusterDSE Cluster

Cassandra DSE Graph

27lowlatency

Page 28: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Process native Event Streams

Twitter

Tweet-to-Cassandra

Wide-Row/Search

Tweet

Graph

Tweet-to-Graph

CustomerReference

ClickStream ClickStream

Activity-to-Graph

DSECluster

28

Geo Point

Customer

Address

Product

ownerOf (since)

interestedIn (since, degree)

lives (since)

ActivityparticipatesIn Termuses

uses

Employee

interactsWith

reference

idname

idwhenwheretext

idfirstNamelastNamebirthDateprofileImageURL

uses

idnameimageURL

idstreetstreetNrzipCodecity

idnamealternateNameslocationpopulationelevation

Country

neighbour

belongsTo

idnameiso2iso3isoNumericcapitalareapopulationcontinent

uses

ActivityType

idname

belongsTo

idname

at

knows(since)

Event Hub Streaming AnalyticsSensor Storage

Page 29: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Single vs. Batch Insert

29

• One Event ends up in many modifications of vertex and edges

• many round-trips needed if done with single API calls

• Single “batched” API call using Groovy script provides 3 – 5x performance gains

DSEGraphActivity-to-GraphTweetUser

publishesTerm*uses*

DSEGraphActivity-to-Graph

…...

Geo Point

Customer

Address

Product

ownerOf (since)

interestedIn (since, degree)

lives (since)

ActivityparticipatesIn Termuses

uses

Employee

interactsWith

reference

idname

idwhenwheretext

idfirstNamelastNamebirthDateprofileImageURL

uses

idnameimageURL

idstreetstreetNrzipCodecity

idnamealternateNameslocationpopulationelevation

Country

neighbour

belongsTo

idnameiso2iso3isoNumericcapitalareapopulationcontinent

uses

ActivityType

idname

belongsTo

idname

at

knows(since)

Page 30: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Process CDC (Change Data Capture) Events

CDC

Customer-to-Cassandra

Wide-Row/Search

CustomerEvent

GraphCustomer-to-

Graph

CustomerCDC

AddressCDC

ContactCDC

Aggregate-to-Customer

DSECluster

30

Geo Point

Customer

Address

Product

ownerOf (since)

interestedIn (since, degree)

lives (since)

ActivityparticipatesIn Termuses

uses

Employee

interactsWith

reference

idname

idwhenwheretext

idfirstNamelastNamebirthDateprofileImageURL

uses

idnameimageURL

idstreetstreetNrzipCodecity

idnamealternateNameslocationpopulationelevation

Country

neighbour

belongsTo

idnameiso2iso3isoNumericcapitalareapopulationcontinent

uses

ActivityType

idname

belongsTo

idname

at

knows(since)

PartnerIdFirstNameLastNameBirthDateProfileImageURL

IdCustomerIdWhenWhereTypeDescription

Contacts

AddressIdPartnerIdStreetStreetNrZipCodeCityCountry

IdNamePriceDescriptionImageURL

Products

CustomerIdProductId

Order

IdCustomerIdWhenWhereInteractionTypeDescription

Customer Service

IdProductIdCommentUserId

Product Reviews

IdPartnerIdTwitterIdFacebookId

Customer

Event Hub Streaming AnalyticsSensor Storage

Page 31: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Real-Time Data Ingestion into Customer Event Hub

Microservice Cluster

Microservice State

{}

API

Stream Processing Cluster

StreamProcessor

State

{}

API

Billing &Ordering

CRM / Profile

MarketingCampaigns

Location

Social

Clickstream

Sensor Data

WeatherData

MobileApps

Email

File Import / SQL Import

EventStream

Event Hub

Event Hub

Event Hub

EventStream

EventStream

Hadoop ClusterdHadoop ClusterDSE Cluster

Cassandra DSE Graph

31

Page 32: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

How to implement an Event Hub? Apache Kafka to the rescue

• publish-subscribe messaging system

• Designed for processing high-volume, real time activity stream data (logs, metrics, social media, …)

• Stateless (passive) architecture, offset-based consumption

• Initially developed at LinkedIn, now part of Apache

• Peak Load on single cluster: 2 million messages/sec, 4.7 Gigabits/sec inbound, 15 Gigabits/sec outbound

Reliable Data Ingestion in Big Data/IoT

Kafka Cluster

Consumer Consumer Consumer

Producer Producer Producer

Broker 1 Broker 2 Broker 3

ZookeeperEnsemble

Page 33: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Apache Kafka Connect

• Scalably and reliably streaming data between Apache Kafka and other data systems

• not an ETL framework• Pre-build connectors available for Data

Source and Data Sinks• JDBC (Source)• Cassandra (Source & Sink)• Oracle GoldenGate (Source)• MQTT (Source)• HDFS (Sink)• Elasticsearch (Sink)• MongoDB (Sink)

Reliable Data Ingestion in Big Data/IoT

Source: Confluent

Page 34: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Declarative Dataflow Definition & Execution

34

Apache NiFi StreamSets

Page 35: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Hadoop ClusterdHadoop ClusterDSE Cluster

Real-Time Data Ingestion into Customer Event Hub

OLA

P

Microservice Cluster

Microservice State

{}

API

File Import / SQL Import

OLT

P

ParallelProcessing

Cassandra

Cassandra

StreamProcessing

DSEFS

Billing &Ordering

CRM / Profile

MarketingCampaigns

Location

Social

Clickstream

Sensor Data

WeatherData

MobileApps

Email

EventStream

Event Hub

Event Hub

Event Hub

EventStream

CassandraReplication

35

Page 36: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Hadoop ClusterdHadoop ClusterDSE Cluster

Real-Time Data Ingestion into Customer Event Hub

OLA

P

Microservice Cluster

Microservice State

{}

API

File Import / SQL Import

OLT

P

ParallelProcessing

Cassandra

Cassandra

StreamProcessing

DSEFS

Billing &Ordering

CRM / Profile

MarketingCampaigns

Location

Social

Clickstream

Sensor Data

WeatherData

MobileApps

Email

EventStream

Event Hub

Event Hub

Event Hub

EventStream

CassandraReplication

36

Page 37: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Questions which can only be answered by Graph

37

Dependencies•Failurechains•Orderofoperation

Matching/CategorizingHighlightvariantofdependencies

ClusteringFindingthingscloselyrelatedtoeachother(friends,fraud)

Flow/CostFinddistributionproblems,efficiencies

SimilaritySimilarpathsorpatterns

Centrality,SearchWhichnodesarethemostconnectedorrelevant

Source: Expero

Page 38: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Questions which can only be answered by Graph -Visualize Customer 360

38

Source: Expero

Page 39: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Questions which can only be answered by Graph -Visualize Customer 360

39

KeyLines

Cytoscape

LinkuriousJS

SigmajsD3

Source: Expero

Page 40: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Questions which can only be answered by Graph -Visualize Customer 360

40

Keylines: http://keylines.com• powerful JavaScript toolkit for graph visualization• powerful visualizations features: Layouting, Filtering,

Combining & Grouping, Time Bar, Geospatial, …• compatible with any modern browser & any graph

database

Page 41: Customer Event Hub – a modern Customer 360° view with DataStax Enterprise (DSE)

Guido SchmutzTechnology Manager

[email protected]

@gschmutz guidoschmutz.wordpress.com