Spring one2gx 2014 erdemgunay
-
Upload
erdem-gunay -
Category
Software
-
view
89 -
download
0
description
Transcript of Spring one2gx 2014 erdemgunay
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/
Porting legacy apps to Spring Boot in one week
By Erdem Günay (@gunayus)
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 2
About Turkcell
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 3
About Turkcell
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 4
How I met Spring Boot?
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 5
Turkcell Video – legacy BaaS
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 6
Turkcell Video – legacy BaaS
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 7
Porting to Spring Boot – end of 1st hour
http://spring.io/guides/gs/actuator-service/
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 8
Porting to Spring Boot – end of 1st day
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 9
Porting to Spring Boot – end of 1st day
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 10
Porting to Spring Boot – end of the week
• All the legacy REST APIs are migrated to @RestController(s)• Architecture is redesigned• Reimplemented as true, simple Spring 4 web application• Zero mobile client update • Faster development, running & debugging• Jboss netty Apache web server & Tomcat 7
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 11
Porting to Spring Boot – number of sessions
%100
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 12
Porting to Spring Boot – throughput
09.0
2.20
14
10.0
2.20
14
11.0
2.20
14
12.0
2.20
14
13.0
2.20
14
14.0
2.20
14
15.0
2.20
14
16.0
2.20
14
17.0
2.20
14
18.0
2.20
140
50
100
150
200
250
300
350
400
450
500
Throughput (GB)
Total
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 13
Android Remote App Configuration
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 14
Android Remote App Configuration
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 15
Android Remote App Configuration
[operation] == 'command' and [manufacturer] == ‘turkcell' and [model] == 't50‘
{
"operation": "command",
"manufacturer": "turkcell",
"model": "t50", "appVersion": "31",
"board": "MSM8226", "device": "msm8226",
"hardware": "qcom", "networkCountryIso": "tr",
"resolution": "720x1184"
}
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 16
Ongoing projects
• All new projects are "bootiful"• Object storage project with 1 Million users and 2 PB storage
capacity• Mobile analytics platform 90 Million transactions per day
SpringFramework
SpringSecurity
SpringData
SpringIntegration
SpringSocial
Spring REST &Web Services
SpringBoot
Unless otherwise indicated, these slides are © 2013-2014 Pivotal Software, Inc. and licensed under aCreative Commons Attribution-NonCommercial l icense: http://creativecommons.org/licenses/by-nc/3.0/ 17
Thanks
@gunayus