changing wheels on moving car, from monolith to microservices by using api's

82
#DevoxxUS Changing wheels on moving car, from monolith to microservices by using API's Vladimir Dejanović San Jose 21 March 2017 #CWMCApi17 @ VladimirD_42

Upload: vladimir-dejanovic

Post on 05-Apr-2017

61 views

Category:

Technology


0 download

TRANSCRIPT

#DevoxxUS

Changing wheels on moving car, from monolith to microservices by using

API'sVladimir Dejanović

San Jose 21 March 2017

#CWMCApi17 @ VladimirD_42

#DevoxxUS

Let’s Meet

Vladimir Dejanović

# CWMCApi17 @ VladimirD_42

#DevoxxUS

WARNING

# CWMCApi17 @ VladimirD_42

#DevoxxUS

WARNING

IF YOU ARE MANAGER OR FAINT OF HEART, THIS TALK

MIGHT NOT BE GOOD FOR YOU

# CWMCApi17 @ VladimirD_42

#DevoxxUS

WARNING

IF YOU ARE MANAGER OR FAINT OF HEART, THIS TALK

MIGHT NOT BE GOOD FOR YOU

# CWMCApi17 @ VladimirD_42

THIS TALK IS FOR THE BRAVE ONES

#DevoxxUS

Agenda

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Agenda

# CWMCApi17 @ VladimirD_42

ref: http://motonetworks.com/wp-content/uploads/2016/04/arab-stunt-driving.jpg

#DevoxxUS

Agenda

Refactoring and Changing

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Agenda

Refactoring and Changing

# CWMCApi17 @ VladimirD_42

Dangers and how to avoid them

#DevoxxUS

Agenda

Refactoring and Changing

# CWMCApi17 @ VladimirD_42

Dangers and how to avoid them

How Api’s can help

#DevoxxUS

Agenda

Refactoring and Changing

# CWMCApi17 @ VladimirD_42

Dangers and how to avoid them

Questions

How Api’s can help

#DevoxxUS

Refactoring and Changing

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Refactoring and Changing

Refactoring vs Changing

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Refactoring and Changing

# CWMCApi17 @ VladimirD_42

ref: http://strategicsimplicity.com/wp-content/uploads/2012/03/7670317_scropped7.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://cdn.playbuzz.com/cdn/135533e4-8b11-4af0-8638-6525eff069e0/9d2f35d6-a75a-44e7-8259-6ff1abb00ce4.jpg

#DevoxxUS

Refactoring and Changing

"I think there is a world market for maybe five computers."

Thomas Watson, president of IBM, 1943

# CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://itsadeliverything.com/wordpress/images//assumption-means-risk-1024x680.png

#DevoxxUS

Refactoring and Changing

"There is no reason anyone would want a computer in their home."

Ken Olsen, founder of Digital Equipment Corporation, 1977

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Refactoring and Changing

"Almost all of the many predictions now being made about 1996 hinge on the Internet's continuing

exponential growth. But I predict the Internet will soon go spectacularly supernova and in 1996

catastrophically collapse."Robert Metcalfe, founder of 3Com, 1995

# CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.macleans.ca/wp-content/uploads/2013/02/5519745603_e6be133cf8.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42ref: https://trmurf.files.wordpress.com/2015/06/embrace-change.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://i222.photobucket.com/albums/dd106/TheAutark/Broken_glass-1.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://disinherited.com/wp-content/uploads/2015/11/Forgot-600x400.jpg

#DevoxxUS

Dangers

The question isn’t if

# CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.kloudymail.com/wp-content/uploads/2015/09/quando-schedulare-una-campagna-di-email-marketing.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.priceperhead.com/wp-content/uploads/2015/08/pay-per-head-bookie-things-avoid-management.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42ref: https://twistedsifter.files.wordpress.com/2011/05/fagaras-castle-romania-moat.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42ref: http://epicfail.xepher.net/wp-content/uploads/2010/12/epicfail1.jpg

#DevoxxUS

Important Questions

# CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref:http://cdn.architecturendesign.net/wp-content/uploads/2015/02/AD-Helpful-Tips-For-People-Who-Have-No-Clue-What-To-Do-With-A-Baby-15.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.datacentertalk.com/wp-content/uploads/2012/01/it-guy-0013.png

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.livescience.com/53280-hydrogen-bomb-vs-atomic-bomb.html

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.sourceministries.net/go/wp-content/uploads/2015/02/th-18-300x173.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS

War Story

Small issue in system

# CWMCApi17 @ VladimirD_42

#DevoxxUS

War Story

Small issue in system

# CWMCApi17 @ VladimirD_42

Just run this script and all will be good

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: https://englishmaninitaly.files.wordpress.com/2014/07/button.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: https://holisticmoving.files.wordpress.com/2015/05/laughing8.jpg

#DevoxxUS

War Story

# CWMCApi17 @ VladimirD_42

10k -> 1.3M

#DevoxxUS # CWMCApi17 @ VladimirD_42ref: http://fcpaprofessor.com/wp-content/uploads/2016/05/lessonslearned.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42ref: https://i.ytimg.com/vi/3RGXP23qipo/maxresdefault.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42ref:: http//www.truthmove.org/news-category/surveillance/

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://motonetworks.com/wp-content/uploads/2016/04/arab-stunt-driving.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.livescience.com/images/i/000/039/929/original/pena-de-bernal-monolith.jpg

#DevoxxUS

Monolith to Micro

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Monolith to Micro

# CWMCApi17 @ VladimirD_42

#DevoxxUS

Monolith to Micro

# CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS

API to rescue

# CWMCApi17 @ VladimirD_42

AB

#DevoxxUS

API to rescue

# CWMCApi17 @ VladimirD_42

AB

A

B

#DevoxxUS

API to rescue

# CWMCApi17 @ VladimirD_42

AB

A

B

#DevoxxUS

API to rescue

# CWMCApi17 @ VladimirD_42

AB

A

B

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://vignette3.wikia.nocookie.net/degrassi/images/0/02/O-BABY-FOOD-MESS-facebook.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.tbo.com/storyimage/TB/20150930/ARTICLE/150939976/AR/0/AR-150939976.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: https://dab1nmslvvntp.cloudfront.net/wp-content/uploads/2016/05/1463750487Christ_Church_Library_Oxford-17189963462.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

http://0d47eeef2abf05521f71-1e80f65b3c6327b7cb4b0619fd21f75b.r59.cf2.rackcdn.com/BC6AA823-31A8-481C-9923-5E7CFE4807B5.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

http://i.usatoday.net/news/_photos/2012/01/09/Light-oil-spill-after-New-Zealand-ship-splits-8KQIGVU-x-large.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.stethnews.com/wp-content/uploads/2015/07/China-Money.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://goodereader.com/blog/wp-content/uploads/images/advertise1-890x395.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: https://img.clipartfest.com/cdb4a70e78530c75d0a2cc6bd1b86357_stubborn-mule-clipart-force-clipart_2400-1321.jpeg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://nationswell.com/wp-content/uploads/2014/01/rows-of-paperwork-in-files.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.rothenterprise.com/wp-content/uploads/2014/11/Electricity-Plug-Socket-Variations-for-Sri-Lanka.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: https://kissflow.com/wp-content/uploads/2015/10/B2B-Finance-Department.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://combiboilersleeds.com/images/frustrated/frustrated-9.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

CREATE TABLE foo (…. col1 ENUM('val1', 'val2') );

#DevoxxUS # CWMCApi17 @ VladimirD_42

CREATE TABLE foo (…. col1 ENUM('val1', 'val2', …. 'val40') );

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://kingofwallpapers.com/secret/secret-011.jpg

#DevoxxUS # CWMCApi17 @ VladimirD_42

Codes

id1: Value1

...

idX: ValueX

#DevoxxUS # CWMCApi17 @ VladimirD_42

Codes

id1: Value1

...

idX: ValueX

Old Table

...

colOld ENUM

#DevoxxUS # CWMCApi17 @ VladimirD_42

Codes

id1: Value1

...

idX: ValueX

Old Table

...

colOld ENUM

colNew CodesID

#DevoxxUS

Old Table

...

colOld ENUM

colNew CodesID

Old Table

...

colOld ENUM

colNew CodesID

# CWMCApi17 @ VladimirD_42

Codes

id1: Value1

...

idX: ValueX

Old Table

...

colOld ENUM

colNew CodesID

#DevoxxUS # CWMCApi17 @ VladimirD_42

ref: http://www.aslitsecurity.com/images/code-review.jpg

#DevoxxUS

Questions

@VladimirD_42

# CWMCApi17 @ VladimirD_42

[email protected]

#DevoxxUS

Thank You

# CWMCApi17 @ VladimirD_42