25

Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do
Page 2: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Streaming Behavioral Analytics

Page 3: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Agenda

©2017 PayPal Inc. Confidential and proprietary.

Behavioral Analytics

What is it?

Why is it important?

Streaming data pipeline

What is it?

What should you consider for building it?

Streaming Architecture

Analytics tech stack @ PayPal

Q & A

Page 4: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Behavioral Analytics

©2017 PayPal Inc. Confidential and proprietary.

I am planning to buy

Hmm! It takes a lot of time

Why do I get weird suggestions

Got it! Let me place the order

Transaction Failed

Page 5: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Behavioral Events

©2017 PayPal Inc. Confidential and proprietary.

Page 6: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Customer & Product Relationship

©2017 PayPal Inc. Confidential and proprietary.

Discovery

Engagement

Repeatability

Page 7: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Understanding Customer Empathy

©2017 PayPal Inc. Confidential and proprietary.

Performance &Latency

Discovery

Experimentation

A B

Page Views & Clicks

Customer Segments

PageBounces

Engagement

Page 8: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Data Pipeline

©2017 PayPal Inc. Confidential and proprietary.

Repeat!

Ingest Process Present

Page 9: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Challenges

©2017 PayPal Inc. Confidential and proprietary.

Volume Elastic Resilient Responsive

Page 10: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Streams

©2017 PayPal Inc. Confidential and proprietary.

01010100101001001010…

Flow of data

A B

Unbounded flow

Real time processing

Observable

Page 11: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Ingestion of Events

©2017 PayPal Inc. Confidential and proprietary.

Fast Publisher Slow Subscriber

Overflow

Page 12: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

©2017 PayPal Inc. Confidential and proprietary.

Fast Publisher Chain of Subscriber

Demand (2)

Backpressure

Page 13: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Streaming data

©2017 PayPal Inc. Confidential and proprietary.

Unbounded flow of data

Backpressure?

Page 14: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Buffers

©2017 PayPal Inc. Confidential and proprietary.

EventsChronicle

queue

commitPersistent Buffers

Broadcast Buffers

Page 15: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Actors

©2017 PayPal Inc. Confidential and proprietary.

A

CB

• State• Behavior• Mailbox

DISPATCHER Threadpool

Tasks

Page 16: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Fault Tolerance

©2017 PayPal Inc. Confidential and proprietary.

Guardian Actor

A

B C

D

E

F

G H

Resume

Restart

Stop

Escalate

Supervisor Strategy

Page 17: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Streams

©2017 PayPal Inc. Confidential and proprietary.

Source Flow Sink

source ~> buffer ~> enrich ~> transform ~> kafkaFlow ~> commit ~> latency ~> sink

Page 18: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Observability

Headers UUID Timestamp

©2017 PayPal Inc. Confidential and proprietary.

Grafana

Page 19: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Analytical Stack @

©2017 PayPal Inc. Confidential and proprietary.

powered by

Page 20: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Real Time Reporting

©2017 PayPal Inc. Confidential and proprietary.

Customer Perceived Latency

Page 21: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Real Time Reporting

©2017 PayPal Inc. Confidential and proprietary.

Page Views and Visitor Metrics

Page 22: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Real Time Reporting

©2017 PayPal Inc. Confidential and proprietary.

Page Flow and Bounces

Page 23: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

Real Time Reporting

©2017 PayPal Inc. Confidential and proprietary.

Page 24: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do
Page 25: Streaming Behavioral Analytics - developermarch.com · Behavioral Analytics ©2017 PayPal Inc. Confidential and proprietary. I am planning to buy Hmm! It takes a lot of time Why do

www.modsummit.com

www.developersummit.com