e Services Microservices Iuliana Condoiu - Service...

17
Microservices What tools do we use? Iuliana Condoiu - Service Platform Developer at Orange Services

Transcript of e Services Microservices Iuliana Condoiu - Service...

Page 1: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

1Mic

rose

rvic

esW

hat

too

ls d

o w

e us

e?

Iulia

na C

ond

oiu

-S

ervi

ce P

latf

orm

Dev

elo

per

at

Ora

nge

Ser

vice

s

Page 2: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

2Co

nten

ts

1.M

icro

serv

ices

arch

itect

ure

2.D

evel

op

men

t3.

Inte

gra

tion

4.S

ecur

ity5.

Dep

loym

ent

6.Te

stin

g

Page 3: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

3Mic

rose

rvic

esar

chit

ectu

re (M

SA

)

!S

mal

l ser

vice

s

!H

ighl

y d

eco

uple

d

!M

od

ular

!O

ne t

ask

per

ser

vice

Ord

er

Ser

vice

Pay

men

tS

ervi

ceU

ser

Acc

oun

t S

ervi

ce

Sho

pp

ing

ca

rtS

ervi

ce

Shi

pp

ing

S

ervi

ce

Page 4: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

4MS

A-a

dva

ntag

es

!S

mal

l mo

dul

ar s

ervi

ces

!S

ervi

ces

are

easy

to

cha

nge/

rep

lace

!S

cala

bili

ty

!In

dep

end

ent

dev

elo

pm

ent

and

dep

loym

ent

!F

ault

iso

latio

n

!C

ont

inuo

us In

teg

ratio

n

!C

ont

inuo

us D

eliv

ery

Page 5: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

5MS

A-d

isad

vant

ages

!D

eplo

ymen

t co

mp

lexi

ty

!A

dd

ing

co

mm

unic

atio

n la

yer

!E

xpen

sive

rem

ote

cal

ls

!H

ard

to

tes

t us

e ca

ses

that

sp

an m

ultip

le s

ervi

ces

!In

crea

se m

emo

ry c

ons

ump

tion

Page 6: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

6Dev

elo

pm

ent

!S

tand

alo

ne a

pp

licat

ion

!B

usin

ess

ori

ente

d

!S

ing

le R

esp

ons

ibili

ty P

rinc

iple

(SR

P)

!In

dep

end

ent

dev

elo

pm

ent

and

dep

loym

ent

!Lo

cal d

ata

sto

rag

e

Ord

er

R No

SQ

L D

B

Pay

men

t

Pyt

hon

MyS

QL

Acc

oun

t

Java

Ora

cle

Car

t

PH

PM

ySQ

L

Shi

pp

ing

Java

No

SQ

L D

B

Page 7: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

7Inte

gra

tio

n

!S

imp

le c

om

mun

icat

ion

!S

ynch

rono

us: R

ES

T, T

hrift

!A

sync

hro

nous

: AM

QP,

ST

OM

P, M

QT

T

!M

essa

ge

form

at: J

SO

N, T

hrift

, Avr

o

!S

ervi

ce c

ont

ract

s: S

wag

ger

, RA

ML,

Thr

ift ID

L

Page 8: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

8!H

igh

num

ber

of

MS

!D

ynam

ic n

atur

e o

f lo

catio

ns

!S

ervi

ce R

egis

try

–ho

lds

MS

inst

ance

s an

d lo

catio

ns

!S

ervi

ce D

isco

very

–m

akes

sur

e th

at S

R h

as r

eal t

ime

dat

a

"C

lient

Ser

vice

Dis

cove

ry

"S

erve

r S

ervi

ce D

isco

very

Ser

vice

Reg

istr

y an

d S

ervi

ce D

isco

very

Page 9: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

9Ser

vice

Reg

istr

y an

d S

ervi

ce D

isco

very

Ord

er

Ser

vice

Pay

men

tS

ervi

ceU

ser

Acc

oun

t S

ervi

ce

Sho

pp

ing

ca

rtS

ervi

ce

Shi

pp

ing

S

ervi

ce

Ser

vice

R

egis

try

Ser

ver

Clie

nt(1

) Ser

vice

Dis

cove

ry

(2) S

ervi

ce L

ocat

ion

(3) R

eque

st(0

) Pub

lish

Page 10: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

10Sp

ring

Clo

ud!

Dis

cove

ry s

erve

r (E

urek

a /

Co

nsul

)"

Sp

ring

Bo

ot

app

licat

ion

"@

Ena

ble

Eur

ekaS

erve

r

!M

icro

serv

ice

def

initi

on

"S

pri

ng B

oo

t ap

plic

atio

n"

@E

nab

leD

isco

very

Clie

nt

!M

icro

serv

ice

cons

ump

tion

"R

estT

emp

late

"se

rvic

eUrl

–lo

gic

al h

ost

!D

istr

ibut

ed c

onf

igur

atio

n

Page 11: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

11Sec

urit

y

!A

uthe

ntic

atio

n &

Aut

hori

zatio

n

!A

t ea

ch M

S le

vel

!O

Aut

h2 –

acce

ss d

eleg

atio

n p

roto

col

(acc

ess

toke

n)

!O

pen

ID C

onn

ect

–ac

cess

to

ken

+ ID

to

ken

!JW

T (J

SO

N W

eb T

oke

n)

Page 12: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

12Sec

urit

y

Ord

er

Ser

vice

Pay

men

tS

ervi

ceU

ser

Acc

oun

t S

ervi

ce

Sho

pp

ing

ca

rtS

ervi

ce

Shi

pp

ing

S

ervi

ce

AP

I G

atew

ayC

lient

(1) A

cces

s To

ken

(4) J

WT

Aut

hori

zati

on

Ser

ver

(2) A

cces

s To

ken

(3) J

WT

Page 13: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

13Dep

loym

ent

!D

istr

ibut

ed s

yste

ms

!C

ont

aine

rs

!V

irtu

aliz

atio

n

!D

ynam

ic e

ndp

oin

ts

!S

cale

up

/do

wn

Page 14: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

14Do

cker

!O

S le

vel v

irtu

aliz

atio

n

!H

ighl

y ef

ficie

nt d

istr

ibut

ion

mo

del

!S

tate

enc

apsu

latio

n o

f an

ap

plic

atio

n (e

nviro

nmen

t in

dep

end

ency

)

!B

est-

of-

bre

ed c

ont

aine

rs –

OS

co

mm

unity

!D

evO

ps

ori

ente

d

Page 15: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

15Kub

erne

tes

!C

lust

er o

f D

ock

erco

ntai

ners

!C

olo

catio

n o

f co

ntai

ners

!S

ervi

ce d

isco

very

!R

eplic

atio

n co

ntro

l

Page 16: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

16Test

ing

!U

nit

test

ing

~ R

ES

T A

PI t

estin

g

"vR

ES

T, S

oap

UI,

Ro

bo

tFra

mew

ork

!C

ont

ract

tes

ting

"P

act,

Pac

to

!E

nd-t

o-e

nd t

estin

g

Page 17: e Services Microservices Iuliana Condoiu - Service ...itakeunconf.com/wp-content/uploads/2016/05/Microservices-what-to… · Iuliana Condoiu - Service Platform Developer at Orang

17Tha

nk y

ou!