Slide 1

Slide 1 text

Application Architecture for Scaled Agile Sangsoo Nam [email protected]

Slide 2

Slide 2 text

Sangsoo Nam Android Engineer at Spotify sangsoonam.github.io @sangsoonam • Full stack Engineer • Scrum Master • Software Tester

Slide 3

Slide 3 text

Agile 1

Slide 4

Slide 4 text

Agile Manifesto http:/ /agilemanifesto.org/

Slide 5

Slide 5 text

Agile Manifesto Individuals and interactions over processes and tools http:/ /agilemanifesto.org/

Slide 6

Slide 6 text

Agile Manifesto Individuals and interactions over processes and tools Working software over comprehensive documentation http:/ /agilemanifesto.org/

Slide 7

Slide 7 text

Agile Manifesto Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation http:/ /agilemanifesto.org/

Slide 8

Slide 8 text

Agile Manifesto Individuals and interactions over processes and tools Working software over comprehensive documentation Customer collaboration over contract negotiation Responding to change over following a plan http:/ /agilemanifesto.org/

Slide 9

Slide 9 text

Make a Car

Slide 10

Slide 10 text

Make a Car

Slide 11

Slide 11 text

Agile Way

Slide 12

Slide 12 text

Agile Way Not like this…

Slide 13

Slide 13 text

Agile Way Not like this… Like this!

Slide 14

Slide 14 text

Agile Team

Slide 15

Slide 15 text

Agile Team Android

Slide 16

Slide 16 text

Agile Team Backend Android

Slide 17

Slide 17 text

Agile Team Backend Android Designer

Slide 18

Slide 18 text

Agile Team Product Owner Backend Android Designer

Slide 19

Slide 19 text

Agile Team Product Owner Agile Coach Backend Android Designer

Slide 20

Slide 20 text

Agile Team Tester Product Owner Agile Coach Backend Android Designer

Slide 21

Slide 21 text

Agile Team Tester Product Owner Agile Coach Backend Android Designer iOS

Slide 22

Slide 22 text

Agile Team Tester Product Owner Agile Coach Backend Android Designer iOS Web

Slide 23

Slide 23 text

Agile Development Cycle Sprint Backlog Product Backlog

Slide 24

Slide 24 text

Agile Development Cycle Sprint Backlog 2-3 weeks Product Backlog

Slide 25

Slide 25 text

Agile Development Cycle Sprint Backlog 2-3 weeks Daily Meeting 24 hours Product Backlog

Slide 26

Slide 26 text

Agile Development Cycle Sprint Backlog 2-3 weeks Daily Meeting 24 hours Shippable Product Increment Product Backlog

Slide 27

Slide 27 text

Scaled Agile 2

Slide 28

Slide 28 text

100 million active users 50 million subscribers Over 30 millions songs 60 markets Growing Fast

Slide 29

Slide 29 text

Hundreds of developers 0.5 Million lines of code How Can We Keep Our Velocity?

Slide 30

Slide 30 text

Agile Team Solve an end to end problem

Slide 31

Slide 31 text

Multiple Agile Teams

Slide 32

Slide 32 text

Multiple Agile Teams ARTIST

Slide 33

Slide 33 text

Multiple Agile Teams ARTIST ALBUM

Slide 34

Slide 34 text

Multiple Agile Teams ARTIST ALBUM CHART

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

ARTIST

Slide 37

Slide 37 text

ARTIST ALBUM

Slide 38

Slide 38 text

ARTIST ALBUM CHART

Slide 39

Slide 39 text

No content

Slide 40

Slide 40 text

Autonomy is the key!

Slide 41

Slide 41 text

Autonomy =

Slide 42

Slide 42 text

Autonomy = Local Responsibility

Slide 43

Slide 43 text

Autonomy =

Slide 44

Slide 44 text

Autonomy = No Blocking Dependency

Slide 45

Slide 45 text

No content

Slide 46

Slide 46 text

ARTIST ALBUM CHART

Slide 47

Slide 47 text

ARTIST ALBUM CHART RUNNING RADIO CONCERT DISCOVER SEARCH BROWSE

Slide 48

Slide 48 text

ARTIST ALBUM CHART RUNNING RADIO CONCERT DISCOVER SEARCH BROWSE … ... … … … … … … … … … … … … … … … … … … … … … … … …

Slide 49

Slide 49 text

“Any organization that designs a system will produce a design whose structure is a copy of the organization's communication structure.” Conway’s law by Melvin Conway

Slide 50

Slide 50 text

Application Architecture 3

Slide 51

Slide 51 text

No content

Slide 52

Slide 52 text

Dependency

Slide 53

Slide 53 text

Consistency Dependency

Slide 54

Slide 54 text

Dynamic Consistency Dependency

Slide 55

Slide 55 text

Dependency

Slide 56

Slide 56 text

Dependency between Client and Backend

Slide 57

Slide 57 text

Open ChartActivity

Slide 58

Slide 58 text

Click Open ChartActivity

Slide 59

Slide 59 text

Click Open ChartActivity

Slide 60

Slide 60 text

Click Open ChartActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = new Intent(getContext(), ChartActivity.class); i.putExtra(EXTRA_CHART_ID, chartIds.get(position)); startActivity(i); } });

Slide 61

Slide 61 text

Click Open ChartActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = new Intent(getContext(), ChartActivity.class); i.putExtra(EXTRA_CHART_ID, chartIds.get(position)); startActivity(i); } });

Slide 62

Slide 62 text

Christmas 50 Show Christmas 50 for Christmas season

Slide 63

Slide 63 text

Christmas 50 Show Christmas 50 for Christmas season

Slide 64

Slide 64 text

Christmas 50 This is not the Chart but the Playlist! Show Christmas 50 for Christmas season

Slide 65

Slide 65 text

Open PlaylistActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { if (position == 3) { Intent i = new Intent(getContext(), PlatlistActivity.class); i.putExtra(EXTRA_PLATLIST_ID, chartIds.get(position)); startActivity(i); } else { Intent i = new Intent(getContext(), ChartActivity.class); i.putExtra(EXTRA_CHART_ID, chartIds.get(position)); startActivity(i); } } });

Slide 66

Slide 66 text

Open PlaylistActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { if (position == 3) { Intent i = new Intent(getContext(), PlatlistActivity.class); i.putExtra(EXTRA_PLATLIST_ID, chartIds.get(position)); startActivity(i); } else { Intent i = new Intent(getContext(), ChartActivity.class); i.putExtra(EXTRA_CHART_ID, chartIds.get(position)); startActivity(i); } } });

Slide 67

Slide 67 text

Dependency between Views (or Teams)

Slide 68

Slide 68 text

Open AlbumActivity

Slide 69

Slide 69 text

Open AlbumActivity

Slide 70

Slide 70 text

Open AlbumActivity Click

Slide 71

Slide 71 text

Open AlbumActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = new Intent(getContext(), AlbumActivity.class); i.putExtra(EXTRA_ALBUM_ID, albumIds.get(position)); startActivity(i); } }); Click

Slide 72

Slide 72 text

Open AlbumActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = new Intent(getContext(), AlbumActivity.class); i.putExtra(EXTRA_ALBUM_ID, albumIds.get(position)); startActivity(i); } });

Slide 73

Slide 73 text

Consider Feature Flag gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i; if(FeatureFlags.get("NewAlbum")) { i = new Intent(getContext(), NewAlbumActivity.class); } else { i = new Intent(getContext(), AlbumActivity.class); } i.putExtra(EXTRA_ALBUM_ID, albumIds.get(position)); startActivity(i); } });

Slide 74

Slide 74 text

Consider Feature Flag gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i; if(FeatureFlags.get("NewAlbum")) { i = new Intent(getContext(), NewAlbumActivity.class); } else { i = new Intent(getContext(), AlbumActivity.class); } i.putExtra(EXTRA_ALBUM_ID, albumIds.get(position)); startActivity(i); } });

Slide 75

Slide 75 text

Dependency After Feature Flag ARTIST ALBUM

Slide 76

Slide 76 text

Dependency After Feature Flag ARTIST ALBUM NEW
 ALBUM

Slide 77

Slide 77 text

Dependency After Feature Flag ARTIST ALBUM NEW
 ALBUM CHART

Slide 78

Slide 78 text

Dependency After Feature Flag ARTIST ALBUM NEW
 ALBUM CHART

Slide 79

Slide 79 text

What is the Most Popular Architecture for Scaled Environment?

Slide 80

Slide 80 text

WWW (World Wide Web)

Slide 81

Slide 81 text

No content

Slide 82

Slide 82 text

URL (Uniform Resource Locator)

Slide 83

Slide 83 text

URL(Uniform Resource Locator) URL Resolver www.spotify.com

Slide 84

Slide 84 text

URL(Uniform Resource Locator) URL Resolver www.spotify.com Resource Location (e.g. IP Address)

Slide 85

Slide 85 text

Spotify URI (Uniform Resource Identifier)

Slide 86

Slide 86 text

No content

Slide 87

Slide 87 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM …

Slide 88

Slide 88 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver …

Slide 89

Slide 89 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … ALBUM URI

Slide 90

Slide 90 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … ALBUM URI

Slide 91

Slide 91 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … ALBUM URI

Slide 92

Slide 92 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver …

Slide 93

Slide 93 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … ALBUM URI

Slide 94

Slide 94 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … ALBUM URI

Slide 95

Slide 95 text

Spotify URI Resolver ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … ALBUM URI

Slide 96

Slide 96 text

No Blocking Dependencies with Spotify URI

Slide 97

Slide 97 text

Consider Feature Flag gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i; if(FeatureFlags.get("NewAlbum")) { i = new Intent(getContext(), NewAlbumActivity.class); } else { i = new Intent(getContext(), AlbumActivity.class); } i.putExtra(EXTRA_ALBUM_ID, albumIds.get(position)); startActivity(i); } });

Slide 98

Slide 98 text

No Feature Flag Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } });

Slide 99

Slide 99 text

No Feature Flag Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } });

Slide 100

Slide 100 text

No Feature Flag Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } }); Just resolve the URI

Slide 101

Slide 101 text

Open PlaylistActivity gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { if (position == 3) { Intent i = new Intent(getContext(), PlatlistActivity.class); i.putExtra(EXTRA_PLATLIST_ID, chartIds.get(position)); startActivity(i); } else { Intent i = new Intent(getContext(), ChartActivity.class); i.putExtra(EXTRA_CHART_ID, chartIds.get(position)); startActivity(i); } } });

Slide 102

Slide 102 text

No PlaylistActivity Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } });

Slide 103

Slide 103 text

No PlaylistActivity Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } });

Slide 104

Slide 104 text

No PlaylistActivity Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } });

Slide 105

Slide 105 text

No PlaylistActivity Logic gridView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView> parent, View view, int position, long id) { Intent i = SpotifyUriResolver.resolve(
 getContext(), uris.get(position) ); startActivity(i); } }); Just resolve the URI

Slide 106

Slide 106 text

Dynamic Consistency Dependency

Slide 107

Slide 107 text

Consistency

Slide 108

Slide 108 text

Consistency … ... … … … … … … … … … … … … … … … … … … … … … … … …

Slide 109

Slide 109 text

No content

Slide 110

Slide 110 text

Rounded

Slide 111

Slide 111 text

Rounded No Bold

Slide 112

Slide 112 text

CSS (Cascading Style Sheets)

Slide 113

Slide 113 text

CSS(Cascading Style Sheets)

Slide 114

Slide 114 text

Don’t (Inline Style) Save CSS(Cascading Style Sheets)

Slide 115

Slide 115 text

Don’t (Inline Style) Save Do (Global Style) .button { width: 100px; height: 30px; border: 1px solid; padding: 10px } Save CSS(Cascading Style Sheets)

Slide 116

Slide 116 text

No content

Slide 117

Slide 117 text

GLUE (Global Language For Unified Experience)

Slide 118

Slide 118 text

GLUE (Global Language For Unified Experience) Color

Slide 119

Slide 119 text

GLUE (Global Language For Unified Experience) Fonts Color

Slide 120

Slide 120 text

GLUE (Global Language For Unified Experience) Fonts Color Component

Slide 121

Slide 121 text

No content

Slide 122

Slide 122 text

No content

Slide 123

Slide 123 text

Card

Slide 124

Slide 124 text

Card

Slide 125

Slide 125 text

Card CompactCard

Slide 126

Slide 126 text

ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver …

Slide 127

Slide 127 text

ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … GLUE

Slide 128

Slide 128 text

Dynamic Consistency Dependency

Slide 129

Slide 129 text

Dynamic

Slide 130

Slide 130 text

Release Cycle

Slide 131

Slide 131 text

Release Cycle 2 weeks

Slide 132

Slide 132 text

Release Cycle 2 weeks PlayStore Review

Slide 133

Slide 133 text

Release Cycle 2 weeks PlayStore Review Users

Slide 134

Slide 134 text

No content

Slide 135

Slide 135 text

Release it Immediately

Slide 136

Slide 136 text

HTML (Hyper Text Markup Language)

Slide 137

Slide 137 text

HTML (Hyper Text Markup Language) Server Web Browser

Slide 138

Slide 138 text

HTML (Hyper Text Markup Language) Server Request Web Browser

Slide 139

Slide 139 text

HTML (Hyper Text Markup Language) Server Request Web Browser Response (HTML)

Spotify Family

Learn more ...

Slide 140

Slide 140 text

WebView?

Slide 141

Slide 141 text

No. Not WebView but Native Renderer

Slide 142

Slide 142 text

Response { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4nzf" }, }, { "text":"RapCaviar", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5yolys8XG4q7YfjYGl5Lff" }, }

Slide 143

Slide 143 text

Response with Render Type { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4nzf" }, } }, { "card": { "text":"RapCaviar", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5yolys8XG4q7YfjYGl5Lff" }, } }

Slide 144

Slide 144 text

Response with Render Type { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4nzf" }, } }, { "card": { "text":"RapCaviar", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5yolys8XG4q7YfjYGl5Lff" }, } }

Slide 145

Slide 145 text

Response with Render Type { "carousel": { "items": [ { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4n }, } }, { "card": { "text":"RapCaviar", "image": { ... }, "link": { ... ]

Slide 146

Slide 146 text

Response with Render Type { "carousel": { "items": [ { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4n }, } }, { "card": { "text":"RapCaviar", "image": { ... }, "link": { ... ]

Slide 147

Slide 147 text

Response with Render Type { "carousel": { "items": [ { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4n }, } }, { "card": { "text":"RapCaviar", "image": { ... }, "link": { ... ]

Slide 148

Slide 148 text

Response with Header { "header": { "text": "Popular Playlists" } }, { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4nzf" }, } } ...

Slide 149

Slide 149 text

Response with Header { "header": { "text": "Popular Playlists" } }, { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4nzf" }, } } ...

Slide 150

Slide 150 text

Response with Header { "header": { "text": "Popular Playlists" } }, { "card": { "text":"Today's Top Hits", "image": { ... }, "link": { ... "uri": "spotify:user:spotify:playlist:5FJXhjdILmRA2z5bvz4nzf" }, } } ...

Slide 151

Slide 151 text

ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … GLUE

Slide 152

Slide 152 text

ARTIST CHART ALBUM NEW
 ALBUM Spotify URI Resolver … GLUE Native Renderer

Slide 153

Slide 153 text

DEMO!

Slide 154

Slide 154 text

No content

Slide 155

Slide 155 text

No content

Slide 156

Slide 156 text

No content

Slide 157

Slide 157 text

No content

Slide 158

Slide 158 text

No content

Slide 159

Slide 159 text

No content

Slide 160

Slide 160 text

No content

Slide 161

Slide 161 text

No content

Slide 162

Slide 162 text

No content

Slide 163

Slide 163 text

No content

Slide 164

Slide 164 text

Same Experience

Slide 165

Slide 165 text

Same Experience

Slide 166

Slide 166 text

Same Experience

Slide 167

Slide 167 text

Personalization

Slide 168

Slide 168 text

Personalization

Slide 169

Slide 169 text

Personalization

Slide 170

Slide 170 text

Personalization

Slide 171

Slide 171 text

Conclusion

Slide 172

Slide 172 text

Autonomy is the key!

Slide 173

Slide 173 text

Autonomy = Local Responsibility

Slide 174

Slide 174 text

Autonomy = No Blocking Dependency

Slide 175

Slide 175 text

ARTIST ALBUM CHART RUNNING RADIO CONCERT DISCOVER SEARCH BROWSE … ... … … … … … … … … … … … … … … … … … … … … … … … …

Slide 176

Slide 176 text

Architecture for Scaled Agile RUNNING CHART BROWSE GENRE …

Slide 177

Slide 177 text

• Dependency Architecture for Scaled Agile RUNNING CHART BROWSE GENRE …

Slide 178

Slide 178 text

• Dependency Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver …

Slide 179

Slide 179 text

• Dependency Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … From URL

Slide 180

Slide 180 text

• Dependency • Consistency Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … From URL

Slide 181

Slide 181 text

• Dependency • Consistency Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … GLUE From URL

Slide 182

Slide 182 text

• Dependency • Consistency Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … GLUE From CSS From URL

Slide 183

Slide 183 text

• Dependency • Consistency • Dynamic Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … GLUE From CSS From URL

Slide 184

Slide 184 text

• Dependency • Consistency • Dynamic Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … GLUE Native Renderer From CSS From URL

Slide 185

Slide 185 text

• Dependency • Consistency • Dynamic Architecture for Scaled Agile RUNNING CHART BROWSE GENRE Spotify URI Resolver … GLUE Native Renderer From CSS From URL From HTML

Slide 186

Slide 186 text

No content

Slide 187

Slide 187 text

We Keep Our Velocity with Better User Experience

Slide 188

Slide 188 text

Questions Sangsoo Nam [email protected]