24
Event Driven Reference Architecture October 28, 2014 John Mathon VP, Enterprise Product Strategy and Evangelism Twitter:@john_mathon blog: CloudRamblings

Wso2 con 2014 event driven architecture Publish/Subscribe Pubsub

Embed Size (px)

Citation preview

Event Driven Reference ArchitectureOctober 28, 2014

John Mathon

VP, Enterprise Product Strategy and Evangelism

Twitter:@john_mathon blog: CloudRamblings

Origin - I was building one of the first distributed network computers

Platform 1.0 Platform 2.0

“How do you share information between users and applications in a networked world?”

Publish/Subscribe Dream

Joe Mary FrankExchange Clearing

This was the answer and we started TIBCO

Subject Filter

Subject Filter

Subject Filter

Subject Filter

Subject Filter

Advantages of Publish/SubscribeEvent Driven Programming

• Everything becomes dynamic and easier to change

• Much faster when more than one subscriber

• Simplified Programming

private void sendGetRequest(Dart.Snmp.ManagerSlave slave, object state){ try { GetMessage request = new GetMessage(); request.Community= "public"; request.Version= SnmpVersion.One; request.Variables.Add(state as Variable); ResponseMessage response = slave.GetResponse(request, myAgentAddress); manager1.Marshal(new ResponseMessage[] { response }, "", null); } catch (Exception ex) { manager1.Marshal(ex); }}

subscribe(“snmp.george”, &handle_snmp)

BO

Port

Risk

Trading

Pricing

Reconcile

TIBCO grew to 300 millionDollars in 10 years with this

Simple message: Get on the Bus

What Point-to-Point looks like after a while

Extremely BrittleExtremely NON-AGILE

This Architecture is a lot easier to change

AppC

AppB

AppA

ServerA

ServerB

ServerC

My dream: What if the cloud was Publish/Subscribe?

Web Site A

The Cloud

Search A

Traffic Data

GPS info

MappingYelp

Alternative EDA – Google - Polling has delays

Web Site A

The Cloud

Search

Indexed Site A

For Google it can still be a month before you are indexed

The Common EDA Pattern -Hub and Spoke

Message Broker

ServerA

AppC

ServerBServerC

AppBAppA

EDA spurred a set of standard toolsPlatform 2.0 Distributed

The Bus

Mediation/ESB

Activity Monitor

Message Broker

Business Process Data

Services RegistryDiscovery

Pattern DetectionComplex Event Processing

Logical Completeness

Dimensionality X: Stateful or not

Y: batch or real timeZ: low change or high changeX’: Long or short running

Platform 3.0The Connected World

• Mobile – 1.5 Billion Smartphones– 600,000 Mobile Apps

• IoT – Billions of devices

• Social – Billions of users

• APIs – 100 Billion API Calls/Minute

• Devops / PaaS – deliver new software daily

• Cloud – IaaS, PaaS, SaaS, iPaaS, CaaS, BaaS, DaaS -$130 billion and growing fast

Technology is in Rapid Evolution

100 Billion API calls/minute

20,000 Public/80,000 Private APIs

Projects doubling Every 18 months

1.5 Billion Smartphones

$100 Billion IaaS, PaaS, SaaS, iPaaS, BaaS, DaaS, …

Billions of Users

What is needed is a glue for NEW and OLD technology

Cassandra/Hbase/M

ongo

Social API/App Store

API Management

Platform 2.0EDA Components

Mediation/ESB

Data Services

RDB

Message Broker

Complex Event Processor

Business Process

Activity Monitor

User Experience

Gov Registry

Platform 3.0 +API Management, BIG Data, Cloud, Social, Mobile, Security everywhere

Mediation/ESB + APIs + Cloud

Adapters Social

Data Services RDB +

BigData

Message Broker + BigData

Complex Event Processor + BigData

Business Process

Activity Monitor

+SOCIAL

BIGDATA

User ExperienceIN THE CLOUD Gov Registry

+ Social Enterprise Store + Mobile Mgt

API Management

Identity Management

Paas / SaaS / DevOpsCloud Integration

IOT

Case Study: Ufer Taxis

Uber User App

Uber Driver App

MeetupMobile App

United Airline Mobile App

Mediation/ESB

Business Processes

DSS to RDB

Message Broker

Payments Square /Zuora …Activity

Monitor

DSS Big Data Activity Log

API and App Store

AnalyticsPeak Demand PricingDispute HandlingCity ConfigurationReserve ServiceMonitor Service

Driver OnboardDriver RatingCustomer OnboardDriver InteractionDriver SelectionDriver PaymentsCustomer PaymentsAvail Query

WSO2 “Platform 3.0” Connected EnterpriseArchitecture Gives you:

• Event Driven everywhere respond instantly

• Legacy Integration and renewal

• APIs instantly, managed and scalable

• Cloud Architecture and Deployment Flexibility and Speed

• Big Data Everywhere

• Easy Integration to Social

• Export APIs

• Easy Integration to payments, social, gps

WSO2 Advantage:75 % of your service is

already written and integrated with the latest

new technology from BigData, Cloud, Social, APIs

is scalable and secure

Exponential Value - 100 Billion API Calls/MinuteUninteresting App if it doesn’t use the Cloud

Smartphone1In a car

Smartphone2In a restaurant

Waze Uber Yelp

Medical Monitor Service

Smartphone4On the street

Smartphone3In a taxi

Tesla Glucose Monitor

DroneGPS

Emergency Vehicle

Search

United Airlines

IoT Protocols

• MQTT

• CoAp

• Zigbee

• Z-Wave

• All these protocols implement publish / subscribe paradigm

Smartphone1outside

Smartphone2At Home

Fire Alarm

Drone

Heart Rate Monitor

Infrared Detector

Light Switch

Light Switch

Myo Gesture Detector

Gas Valve Control

Heat Control

In Home IoT Hub

Tile

Cloud

Publish/Subscribe coming back In Spades in IoT

IoT: the power of Publish/Subscribe

About the Author

• 10 patents, publish / subscribe, multipath low latency high reliability messaging, Content management in file systems, peer to peer messaging over WAN… others

• founder and CTO of TIBCO

• WSO2 Enterprise Product Strategy and Evangelism

• Twitter: @john_mathon

• Blog: CloudRamblings johnmathon.wordpress.com

SUMMARY

• PUBSUB instrumental in the origination of platform 2.0 and distributed EDA

• PUBSUB as relevant in the Platform 3.0 Mobile Social Cloud API BigData IoT World

• PUBSUB is the preferred way to create the Connected Enterprise / Connected World

• WSO2 has the broadest integrated platform 3.0