I built <frankenstein-monster>: 3 stories of migration

A presentation at Smashing Conf New York in October 2019 in New York, NY, USA by Denys Mishunov

Slide 1

Slide 1

with love from Presented by DENYS MISHUNOV twitter: @MISHUNOV web: MISHUNOV.ME

Slide 2

Slide 2

Slide 3

Slide 3

migration noun mi·gra·tion | \ mī-ˈgrā-shən \

Slide 4

Slide 4

migration

Slide 5

Slide 5

MAGIC migration

Slide 6

Slide 6

migration

Slide 7

Slide 7

migration

Slide 8

Slide 8

MAGIC migration

Slide 9

Slide 9

migration

Slide 10

Slide 10

migration

Slide 11

Slide 11

MAGIC

Slide 12

Slide 12

migration COMPLETE REWRITE GRADUAL MIGRATION

Slide 13

Slide 13

migration COMPLETE REWRITE GRADUAL MIGRATION

Slide 14

Slide 14

Chapter 1. REWRITE, REWRITE, DENY Story about complete rewrite, rejection of an opportunity and a coffee-machine

Slide 15

Slide 15

“ to something MORE MODERN & FLEXIBLE ”

Slide 16

Slide 16

  1. Re-fresh Design 2. Pick Target 3. Migrate

Slide 17

Slide 17

Slide 18

Slide 18

E TUR FEA FE E AT R RE U U E UATEUART R F A E FE E F

Slide 19

Slide 19

E TUR FEA FE E AT R RE U U E UATEUART R F A E FE E F

Slide 20

Slide 20

“ to something MORE MODERN & FLEXIBLE ”

Slide 21

Slide 21

Slide 22

Slide 22

? H A L B LAH B MEH… BLAH-BL AH!

Slide 23

Slide 23

Slide 24

Slide 24

migration COMPLETE REWRITE GRADUAL MIGRATION

Slide 25

Slide 25

migration COMPLETE REWRITE GRADUAL MIGRATION

Slide 26

Slide 26

Chapter 2. ACCEPTANCE Story about gradual migration and irony in life

Slide 27

Slide 27

Slide 28

Slide 28

“[…] develop features that work in the existing project FAST…” “… so that it would be easier to migrate to…” something MORE MODERN & FLEXIBLE

Slide 29

Slide 29

Slide 30

Slide 30

COMPONENT COMPONENT S E I T R OPE PR COMPONENT COMPONENT PR S E I T R OPE

Slide 31

Slide 31

COMPONENT DOM EVENTS COMPONENT S E I T R OPE PR COMPONENT DOM EVENTS COMPONENT PR S E I T R OPE

Slide 32

Slide 32

BEFORE we go on…

Slide 33

Slide 33

migration COMPLETE REWRITE

Slide 34

Slide 34

migration COMPLETE REWRITE GRADUAL MIGRATION

Slide 35

Slide 35

migration vs COMPLETE REWRITE GRADUAL MIGRATION

Slide 36

Slide 36

Chapter 3. ADVENTURES BEGIN Practical story about building monsters

Slide 37

Slide 37

FRANKENSTEIN MIGRATION

Slide 38

Slide 38

FRANKENSTEIN MIGRATION MICROSERVICES

Slide 39

Slide 39

FRANKENSTEIN MIGRATION MICROSERVICES SERVICE

Slide 40

Slide 40

FRANKENSTEIN MIGRATION SERVICE MICROSERVICES SERVICE SERVICE SERVICE SERVICE SERVICE

Slide 41

Slide 41

FRANKENSTEIN MIGRATION MICROSERVICES SERVICE SERVICE SERVICE SERVICE SERVICE SERVICE Small in size Bounded by contexts Built and released with automated processes Autonomously developed Independently deployable

Slide 42

Slide 42

FRANKENSTEIN MIGRATION MICROSERVICES SERVICE SERVICE SERVICE SERVICE SERVICE SERVICE Small in size Bounded by contexts Built and released with automated processes Autonomously developed Independently deployable

Slide 43

Slide 43

FRANKENSTEIN MIGRATION WEB COMPONENTS Autonomously developed Independently deployable

Slide 44

Slide 44

WEB COMPONENTS FRANKENSTEIN MIGRATION MICROSERVICES

Slide 45

Slide 45

FRANKENSTEIN MIGRATION THEORY

Slide 46

Slide 46

FRANKENSTEIN MIGRATION THEORY

Slide 47

Slide 47

FRANKENSTEIN MIGRATION

Slide 48

Slide 48

FRANKENSTEIN MIGRATION to something MORE MODERN & FLEXIBLE

Slide 49

Slide 49

FRANKENSTEIN MIGRATION

Slide 50

Slide 50

FRANKENSTEIN MIGRATION COMPLETE REWRITE

Slide 51

Slide 51

FRANKENSTEIN MIGRATION COMPLETE REWRITE HOST ALIEN

Slide 52

Slide 52

FRANKENSTEIN MIGRATION COMPLETE REWRITE + GRADUAL MIGRATION HOST ALIEN

Slide 53

Slide 53

  1. Identify Microservices

Slide 54

Slide 54

  1. y tif en Id M ic ce s vi er ro s

Slide 55

Slide 55

ce s vi er ro s M ic y tif en Id 1. 2. Host-To-Alien Access

Slide 56

Slide 56

os H s A cc es ce s vi er ro s lie n M ic A t-T o- y tif en Id

Slide 57

Slide 57

  1. Write Alien Component 2.

os H s A cc es ce s vi er ro s lie n M ic A t-T o- y tif en Id

Slide 58

Slide 58

e n lie A nt ne po Co m s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 59

Slide 59

  1. Web Component Wrapper 3.

e n lie A nt ne po Co m s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 60

Slide 60

W eb n lie A nt ne W ra p pe nt ne po Co m Co m po e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id r

Slide 61

Slide 61

  1. Swap Host service with WC 4.

W eb n lie A nt ne W ra p pe nt ne po Co m Co m po e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id r

Slide 62

Slide 62

n lie A w ith C r W pe W ra p ce vi er ts os H nt ne nt ne po Co m Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 63

Slide 63

n lie A w ith C r W pe W ra p ce vi er ts os H nt ne nt ne po Co m Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 64

Slide 64

  1. Rinse Repeat

n lie A w ith C r W pe W ra p ce vi er ts os H nt ne nt ne po Co m Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 65

Slide 65

  1. Rinse Repeat

n lie A w ith C r W pe W ra p ce vi er ts os H nt ne nt ne po Co m Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 66

Slide 66

  1. Rinse Repeat
  2. Switch to Alien

n lie A w ith C r W pe W ra p ce vi er ts os H nt ne nt ne po Co m Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id

Slide 67

Slide 67

H TT P 6. Rinse Repeat to A lie n w ith C r W pe W ra p ce vi er nt ne nt ne po Co m ts os H h itc n lie A Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id Sw 7. 5. 4. 3. 2. 1.

Slide 68

Slide 68

H TT P 6. Rinse Repeat to A lie n w ith C r W pe W ra p ce vi er nt ne nt ne po Co m ts os H h itc n lie A Co m po ap Sw W eb e s A cc es ce s vi er ro s lie n M ic A t-T o- W rit os H y tif en Id Sw 7. 5. 4. 3. 2. 1.

Slide 69

Slide 69

QUALITY OF FRANKENSTEIN COMPLETE REWRITE THEORY + MIGRATION DELIVERY SPEED OF GRADUAL MIGRATION

Slide 70

Slide 70

FRANKENSTEIN MIGRATION PRACTICE

Slide 71

Slide 71

Slide 72

Slide 72

Slide 73

Slide 73

Slide 74

Slide 74

Slide 75

Slide 75

FRANKENSTEIN MIGRATION

Slide 76

Slide 76

FRANKENSTEIN APPROACH

Slide 77

Slide 77

FRANKENSTEIN APPROACH • Faster PROJECT’S BOOTSTRAPPING using components from different projects

Slide 78

Slide 78

FRANKENSTEIN APPROACH • Faster PROJECT’S BOOTSTRAPPING using components from different projects • Faster release-cycle for a CORE FEATURE

Slide 79

Slide 79

FRANKENSTEIN APPROACH • Faster PROJECT’S BOOTSTRAPPING using components from different projects • Faster release-cycle for a CORE FEATURE • Framework-agnostic HIRING POLICY

Slide 80

Slide 80

with love from Presented by DENYS MISHUNOV Music: ME Illustrations: OH, WELL… https://bit.ly/33wg7ue Git Repositories: https://bit.ly/2B7LqQ7 @mishunov · mishunov.me