the current messaging landscape

81
Messaging Events Everywhere

Upload: great-wide-open

Post on 13-Apr-2017

110 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: The Current Messaging Landscape

Messaging

Events Everywhere

Page 2: The Current Messaging Landscape

Michael LaingArchitect, Edge Engineering

New York [email protected]

Page 3: The Current Messaging Landscape
Page 4: The Current Messaging Landscape
Page 5: The Current Messaging Landscape

We’ll talk about:• nyt aбrik (my project)⨍• Messaging• Messaging Open Source

Software• Use cases (Events/Demo)

Page 6: The Current Messaging Landscape
Page 7: The Current Messaging Landscape
Page 8: The Current Messaging Landscape
Page 9: The Current Messaging Landscape
Page 10: The Current Messaging Landscape
Page 11: The Current Messaging Landscape
Page 12: The Current Messaging Landscape
Page 13: The Current Messaging Landscape

A Global Mesh with a Memory

Millions of users

Dozens ofinternal clients

Page 14: The Current Messaging Landscape
Page 15: The Current Messaging Landscape
Page 16: The Current Messaging Landscape

1988:(Harvard)

30,000

Page 17: The Current Messaging Landscape
Page 18: The Current Messaging Landscape

2020:(Global) 50,000,000,000

Page 19: The Current Messaging Landscape

We’ll talk about:• nyt aбrik (my project)⨍• Messaging• Messaging Open Source

Software• Use cases (Events/Demo)

Page 20: The Current Messaging Landscape

Messaging:

• What is it?• Why should I care?

Page 21: The Current Messaging Landscape

Message

Event

Metric

Header

Body

Page 22: The Current Messaging Landscape

Why should I care? Decoupling

Page 23: The Current Messaging Landscape

by wmasterj and Fabrice TIERCELIN - Wikipedia

Page 24: The Current Messaging Landscape

Why should I care? Decoupling

How does this happen?• Asynchronous interaction

Page 25: The Current Messaging Landscape
Page 26: The Current Messaging Landscape
Page 27: The Current Messaging Landscape

A BMessages

Page 28: The Current Messaging Landscape

Instances

Processes

Functions

AsyncScope

Page 29: The Current Messaging Landscape
Page 30: The Current Messaging Landscape

Time

P C

Idle

Idle

Idle

sync

Page 31: The Current Messaging Landscape

async

Time

P C CP

Idle

Idle

Idle

Idle

sync vslatency

Page 32: The Current Messaging Landscape

We’ll talk about:• nyt aбrik (my project)⨍• Messaging• Messaging Open Source

Software• Use cases (Events/Demo)

Page 33: The Current Messaging Landscape
Page 34: The Current Messaging Landscape

Broker

Page 35: The Current Messaging Landscape

LAN

Page 36: The Current Messaging Landscape

WAN

Page 37: The Current Messaging Landscape

: + flexibility

Page 38: The Current Messaging Landscape
Page 39: The Current Messaging Landscape
Page 40: The Current Messaging Landscape

LAN/WAN

DatabaseSemanticsFor access

Page 41: The Current Messaging Landscape

:

+ scalability

Page 42: The Current Messaging Landscape
Page 43: The Current Messaging Landscape

GW GW …GW GW GW …GW

Region A Region B …

Page 44: The Current Messaging Landscape

GW

Push Pullsnd rcv

µSvc …

Page 45: The Current Messaging Landscape
Page 46: The Current Messaging Landscape
Page 47: The Current Messaging Landscape

: + IoT

Page 48: The Current Messaging Landscape

2020:(Global) 50,000,000,000

Page 49: The Current Messaging Landscape

:Written in C

+ IoT

Page 50: The Current Messaging Landscape

GW

Push Pullsnd rcv

µSvc …∅mq

Page 51: The Current Messaging Landscape

: + very fast∅mq

Page 52: The Current Messaging Landscape

GW

Push Pull snd rcv

µSvc …NSQ

Page 53: The Current Messaging Landscape

: + fastNSQ

Page 54: The Current Messaging Landscape

GW

Push Pullsnd rcv

µSvc …NSQ

What if…

Page 55: The Current Messaging Landscape

GW GW …GW GW GW …GW

Region A Region B …

Then:

Page 56: The Current Messaging Landscape

… …

Region A Region B …

GW GW GW GW GW GW

Becomes:

Page 57: The Current Messaging Landscape
Page 58: The Current Messaging Landscape
Page 59: The Current Messaging Landscape

: + offsets

Page 60: The Current Messaging Landscape
Page 61: The Current Messaging Landscape

We’ll talk about:• nyt aбrik (my project)⨍• Messaging• Messaging OSS• Use cases (what about

Events & Demo? Hang on…)

Page 62: The Current Messaging Landscape

: + flexibility

Page 63: The Current Messaging Landscape

: + very fast∅mq

Page 64: The Current Messaging Landscape

: + fastNSQ

Page 65: The Current Messaging Landscape

: + IoT

Page 66: The Current Messaging Landscape

: + offsets

Page 67: The Current Messaging Landscape
Page 68: The Current Messaging Landscape
Page 69: The Current Messaging Landscape

“Mobile is about moments, shorter and more fragmented. It’s important we string these together,” said Paul Muret, the vice president for display, video and analytics at Google.

“We need to understand the desires of consumers in each point in time to understand their context and intent.”

Events

Page 70: The Current Messaging Landscape

2020:(Global) 50,000,000,000

Page 71: The Current Messaging Landscape

Observations• SQL considered harmful for global

online distributed systems• Web is dead• Mobile is maturing• The excitement: Things & Events

Page 72: The Current Messaging Landscape

Event Sourcing

…a design pattern that captures all changes to an application's state as a sequence of events…

Page 73: The Current Messaging Landscape

Event Sourcing

…synchronizes in distributed systems around the concept of optimistic concurrency…

Page 74: The Current Messaging Landscape

Use Case: XWORDCharacteristics• Multi-user• Distributed

Globally• Clients can

disconnect

Implementation• Message Bus• NoSQL

Page 75: The Current Messaging Landscape
Page 76: The Current Messaging Landscape
Page 77: The Current Messaging Landscape
Page 78: The Current Messaging Landscape
Page 79: The Current Messaging Landscape
Page 80: The Current Messaging Landscape
Page 81: The Current Messaging Landscape

Michael LaingArchitect, Edge Engineering

New York [email protected]