Você está na página 1de 40

PUBLIC PRESENTATION | Ted Ross 1

Integrating the Internet of Things


with AMQP
Ted Ross
Platform Architect
October 16, 2012
PUBLIC PRESENTATION | Ted Ross 2
Agenda

What is AMQP and how does it relate to Traditional


Messaging

!ow does AMQP relate to Traditional "etwor#ing

What are the $enefits of AMQP

AMQP %e&lo'ment (cenarios

Red !at)s *+t+re Plans for AMQP


PUBLIC PRESENTATION | Ted Ross ,
Terms and Contet
Term -R. %escri&tion
AMQP www/am0&/org O&en standard &rotocol for
1nter&rise Messaging
A&ache Q&id 0&id/a&ache/org O&en (o+rce
2m&lementation of AMQP
A&ache Q&id Proton 0&id/a&ache/org3&roton AMQP 1/0 Protocol 1ngine
45, 6a7a, and 6a7a(cri&t8
Red !at 1nter&rise MR9:M www/redhat/com3mrg 1nter&rise Messaging
Prod+ct based on A&ache
Q&id
PUBLIC PRESENTATION | Ted Ross ;
Agenda

What is AMQP and how does it relate to Traditional


Messaging

!ow does AMQP relate to Traditional "etwor#ing

What are the $enefits of AMQP

AMQP %e&lo'ment (cenarios

Red !at)s *+t+re Plans for AMQP


PUBLIC PRESENTATION | Ted Ross <
Introd!"ing AMQP

Ad7anced Message Q+e+ing Protocol

htt&=33www/am0&/org

AMQP is a Protocol for 1nter&rise Messaging

AMQP is not an AP2

AMQP is O&en and witho+t 2ntellect+al Pro&ert'


enc+mbrances

AMQP was created b' a di7erse gro+& of


7endors and +sers
PUBLIC PRESENTATION | Ted Ross 6
APIs and Proto"o#s
Messaging AP2 Messaging AP2
A&&lication A&&lication
Protocol
PUBLIC PRESENTATION | Ted Ross >
APIs and Proto"o#s
R1(T Web (er7er3592
A&&lication A&&lication
!TTP
PUBLIC PRESENTATION | Ted Ross ?
APIs and Proto"o#s
6M( 6M(
A&&lication A&&lication
@&ro&rietar'A
PUBLIC PRESENTATION | Ted Ross B
APIs and Proto"o#s
6M( 47endor A8 6M( 47endor $8
A&&lication A&&lication
@&ro&rietar'A @&ro&rietar'A
C
PUBLIC PRESENTATION | Ted Ross 10
APIs and Proto"o#s
6M( 47endor A8 6M( 47endor $8
A&&lication A&&lication
AMQP
PUBLIC PRESENTATION | Ted Ross 11
APIs and Proto"o#s
6M( Q&id /"1T AP2
A&&lication A&&lication
AMQP
PUBLIC PRESENTATION | Ted Ross 12
The Promise of AMQP

M+lti:Dendor 2ntero&erabilit'

Accessible thro+gh a wide 7ariet' of AP2s

6M(, 65A, W5*, O&enMAMA, Q&id, etc/

/// and T'&es of AP2s

(im&le, s'nchrono+s message send and recei7e

!igh scale as'nchrono+s, m+lti:threaded ser7ers

"iche a&&lications= *ile Transfer, Dideo (treaming, etc/

A Rich (et of 5omm+nication Patterns

%irect, P+blish3(+bscribe, Re0+est3Res&onse, (tore and


*orward, etc/

(ol7es Problems for .arge (cale %istrib+ted 1nter&rises


PUBLIC PRESENTATION | Ted Ross 1,
Agenda

What is AMQP and how does it relate to Traditional


Messaging

!ow does AMQP relate to Traditional "etwor#ing

What are the $enefits of AMQP

AMQP %e&lo'ment (cenarios

Red !at)s *+t+re Plans for AMQP


PUBLIC PRESENTATION | Ted Ross 1;
AMQP In the Networ$ Sta"$
AMQP
A%%#i"ation
TCP
IP
PUBLIC PRESENTATION | Ted Ross 1<
AMQP In the Networ$ Sta"$
AMQP
A%%#i"ation
TCP
IP
TLS&SSL
PUBLIC PRESENTATION | Ted Ross 16
AMQP In the Networ$ Sta"$
AMQP
A%%#i"ation
R'MA
Infini(and )iga(it Ethernet
PUBLIC PRESENTATION | Ted Ross 1>
AMQP In the Networ$ Sta"$
AMQP
A%%#i"ation
Any Reliable Transport
PUBLIC PRESENTATION | Ted Ross 1?
To%o#og*+ Point to Point
AMQP
A%%#i"ation
Trans%ort
AMQP
A%%#i"ation
Trans%ort
PUBLIC PRESENTATION | Ted Ross 1B
To%o#og*+ ,ith an Intermediar*
AMQP
A%%#i"ation
Trans%ort
AMQP
A%%#i"ation
Trans%ort
AMQP
Intermediar*
Trans%ort
PUBLIC PRESENTATION | Ted Ross 20
To%o#og*+ ,ith an Intermediar* Networ$
AMQP
A%%#i"ation
Trans%ort
AMQP
A%%#i"ation
Trans%ort
AMQP
Networ$
PUBLIC PRESENTATION | Ted Ross 21
AMQP Addressing

AMQP (er7ices can be accessed directl'


amqp://service.domain.com/further/info
amqps://service.domain.com/

AMQP 1nd&oints can be accessed 7ia a messaging


ser7ice
amqp://maas.domain.com/subdomain/service-address
amqp://maas.domain.com/subdomain/mobile-address
amqp://atc.faa.gov/aircraft/N7167Q
amqp://atc.faa.gov/aircraft/all-boston-center

Addresses can be +sed to

P+blish and3or (+bscribe to data

Access a Re0+est3Res&onse ser7ice

1tc/
PUBLIC PRESENTATION | Ted Ross 22
Agenda

What is AMQP and how does it relate to Traditional


Messaging

!ow does AMQP relate to Traditional "etwor#ing

What are the $enefits of AMQP

AMQP %e&lo'ment (cenarios

Red !at)s *+t+re Plans for AMQP


PUBLIC PRESENTATION | Ted Ross 2,
Benefits of AMQP as a Proto"o#

(ession M+lti&leEing

*+ll %+&leE, As'nchrono+s 5omm+nication

(emantics of Message !and:off

%ata (ec+rit'

*low 5ontrol

(erialiFation of (tr+ct+red %ata

Message Metadata

Trans&ort 2nde&endence
PUBLIC PRESENTATION | Ted Ross 2;
Session M!#ti%#eing

M+lti&le (essions can be carried o7er a single


connection

(essions ha7e inde&endent message


se0+encing and flow control

2nterlea7ing of large messages


Trans%ort Conne"tion (essions
PUBLIC PRESENTATION | Ted Ross 2<
-!## '!%#e. As*n"hrono!s

Within a session, messages can flow


inde&endentl' in both directions
Trans%ort Conne"tion (essions
PUBLIC PRESENTATION | Ted Ross 26
Semanti"s of Message /and0off

AMQP formall' defines the semantics of message


transfer and settlement3ac#nowledgment

Messages can be mo7ed or co&ied

%eli7er' g+arantees=

$est 1ffort 4*ire and *orget8

At .east Once

1Eactl' Once

Transactional Message Transfer

.ocal Transactions between 1nd&oints

%istrib+ted Transactions
PUBLIC PRESENTATION | Ted Ross 2>
'ata Se"!rit*

T.(3((.

1ncr'&tion onl', or

1ncr'&tion and a+thentication b' E/<0B certificates

Most AP2s &ro7ide this o&tion 7ia the teEt of a -R.=


am0&=33hostname 7s/ am0&s=33hostname

1Etensible A+thentication3(ec+rit' Mechanisms

(A(. G (im&le A+thentication and (ec+rit' .a'er

(+&&orts n+mero+s mechanisms=


A"O"HMO-(
P.A2"
%291(T:M%<
9((AP2
"T.M
///
PUBLIC PRESENTATION | Ted Ross 2?
-#ow Contro#

.imits the n+mber of messages that a &rod+cer


can transfer at a time

9reatl' sim&lifies some diffic+lt architect+ral


&roblems

Man' data so+rces sending to a data sin# at the same time


PUBLIC PRESENTATION | Ted Ross 2B
Seria#i1ation of Str!"t!red 'ata

AMQP defines the wire:line format for data t'&es

The a&&lication designer doesn)t need to be concerned


with

The 1ndian order of a &eer s'stem

The Word (iFe of a &eer s'stem

Rich AP2 s+&&ort is &ro7ided to access this feat+re

A P'thon &rogram can send a message containing a P'thon %ictionar'

A 6a7a &rogram can recei7e the message as a !ash Ma& 4or a 6M( Ma&
Message8

A 5II &rogram can recei7e the same message as a std==ma&


PUBLIC PRESENTATION | Ted Ross ,0
Message Meta0data

.i#e !TTP, AMQP allows messages to be annotated


with headers

An' n+mber of a&&lication:s&ecific headers ma' be


&laced in a message

!eaders are carried se&aratel' from the message


bod' 4which ma' be encr'&ted, encoded, and3or
com&ressed8
PUBLIC PRESENTATION | Ted Ross ,1
Agenda

What is AMQP and how does it relate to Traditional


Messaging

!ow does AMQP relate to Traditional "etwor#ing

What are the $enefits of AMQP

AMQP %e&lo'ment (cenarios

Red !at)s *+t+re Plans for AMQP


PUBLIC PRESENTATION | Ted Ross ,2
'e%#o*ment Cases

Traditional Messaging +sing AMQP

Offering a (er7ice o7er AMQP

Der' .arge (cale AMQP "etwor# with Mobile


1nd&oints
PUBLIC PRESENTATION | Ted Ross ,,
Traditiona# Messaging !sing AMQP

(mall to Medi+m (cale %istrib+ted A&&lications

Q+e+es and To&ics as intermediaries

(ome A&&lication .ogic im&lemented in the Q+e+es

Priorit'

.ast:Dal+e

Message 9ro+&s

5lean intero&erabilit' across &latforms and lang+ages


is a selling &oint
PUBLIC PRESENTATION | Ted Ross ,;
Offering a Ser2i"e o2er AMQP

AMQP ser7ices can be offered to client a&&lications

5ommon Messaging Patterns are

P+blish3(+bscribe for clients to recei7e &+blished information

Re0+est3Res&onse for clients to 0+er' for data or re0+est action

5lient a&&lications can be written against AP2s from


different 7endors

A+thentication and A+thoriFation Polic' are selling


&oints

Red !at)s AMQP $ro#er +ses this for Remote


Management
PUBLIC PRESENTATION | Ted Ross ,<
Large S"a#e Networ$ with Mo(i#it*
%ata 5enter %ata 5enter

!igh Performance in %istrib+ted %ata 5enters

Polic':$ased Ro+ting to and from Mobile 1nd&oints

(tore and *orward

Message Persistence Across ('stem Restarts


PUBLIC PRESENTATION | Ted Ross ,6
Agenda

What is AMQP and how does it relate to Traditional


Messaging

!ow does AMQP relate to Traditional "etwor#ing

What are the $enefits of AMQP

AMQP %e&lo'ment (cenarios

Red !at)s *+t+re Plans for AMQP


PUBLIC PRESENTATION | Ted Ross ,>
Red /at3s AMQP Road Ma%

5lients and AP2s

Pro7ide AMQP s+&&ort +nder s+&&orted AP2s

Promote comm+nit' de7elo&ment of AMQP:enabled


interfaces and com&onents
4The A&ache Q&id:Proton &roJect8

$ac# Office

Pro7ide AMQP connecti7it' in messaging bro#ers

1nable a&&lications to +se and &ro7ide AMQP ser7ices

2nternet:(cale Messaging

Pro7ide technolog' and &rod+cts for &+blic and


on:&remises messaging infrastr+ct+re
PUBLIC PRESENTATION | Ted Ross ,?
Proton+ An AMQP Proto"o# Engine
AMQP
A%%#i"ation
Trans%ort
Proton
A%%#i"ation
Trans%ort
'ri2er
API

%esigned to &romote ado&tion of AMQP

2ntegrates below the AP2

"ot s&ecific to an' eEec+tion3threading model

"ot s&ecific to an' trans&ort AP2 4soc#ets, etc/8

2m&lementations= 5, 6a7a, 6a7a(cri&t 4&lanned8


PUBLIC PRESENTATION | Ted Ross ,B
The Internet of Things

AMQP Messaging &ro7ides rich ca&abilities for


%istrib+ted ('stems

%e7ices 4handheld, embedded, etc/8 comm+nicating


with $ac# Office data centers

%e7ices comm+nicating with each other

AMQP can be de&lo'ed in 2nternet scale networ#s

$' le7eraging 2nternet technologies 4%"(, T5P32P, ///8

$' +sing messaging as a ser7ice

(elf Pro7isioning

M+lti:tennant

Ro+ting at the messaging:address le7el


PUBLIC PRESENTATION | Ted Ross ;0

///abo+t the intelligent, integrated


enter&rise 7ision
htt&=33www/getcontrolwithJboss/com3

///abo+t 6$oss 1nter&rise Middleware


htt&=33www/redhat/com3&rod+cts3Jbossenter&risemiddleware3

///abo+t AMQP and Q&id Proton


htt&=330&id/a&ache/org3&roton
.earn more

Você também pode gostar