SpotFlow: Tracking Method Calls and States at Runtime
Boot in Production
1.
2. SPRING BOOT
Before and after the release
2@twincengray @morningatlohika
Oleksiy Rezchykov
February 2015
3. About me
Software Test Engineer
Last 7 years working with Java and
Spring
XP/Agile/Lean practitioner
Lazy Pragmatic programmer
3@twincengray @morningatlohika
4. Plan for today:
Introduction to Spring Boot
Black magic of auto configuration
Testing in Spring Boot
Logging and Monitoring
What’s next?
4@twincengray @morningatlohika
5. Context
Playtika facts
Founded in 2010
Multiplatform social games developer
Headquarters in Tel-Aviv
Offices in US, Canada, Ukraine, Belarus,
Romania and Argentina
Industry facts
Social Casino segment is growing faster than
other Social Games segments
Mobile platforms is the main focus for
developers
More about Playtika and Social Casino genre:
http://www.slideshare.net/eladkushnir/final-ccsf-elad-kushnir
5@twincengray @morningatlohika
7. Demo application architecture
ToDo Share app – to share ToDo’s
User Service
Account Service
ToDo Service
Tests projects
7@twincengray @morningatlohika
10. Auto configuration WTF’s
“The Spring Boot auto-configuration tries its best to ‘do
the right thing’, but sometimes things fail and it can be hard to
tell why.”
Spring Documentation
http://docs.spring.io/spring-boot/docs/1.2.1.RELEASE/reference/htmlsingle/#howto-troubleshoot-auto-
configuration
10@twincengray @morningatlohika
14. Logging with Boot
Supports: Log4j, Logback, Log4j2
What we need is:
External log configuration (env bound)
Re-load of log configuration
Log storing for further processing
Logstash?Graylog and stuff
14@twincengray @morningatlohika
18. What’s next
Spring Cloud (esp. Netflix OSS integration, Amazon/Cloud
Foundry tooling)
Spring Session
Dropwizard (!?!?!)
18@twincengray @morningatlohika
19. Summary
If you want to use a tool – learn it
Spring Boot is not a silver bullet
If you want to sleep at night after releases - monitor
everything and be able to re-configure your application
19@twincengray @morningatlohika