Share
Embed
Back from SpringOnePlatform 2019
Stéphane Nicoll & Brian Clozel, Paris JUG, November 2019.
Brian Clozel
November 12, 2019
Annual Pro sale · Save $30
Have presentations of your own?
Share with private links, password protection, and more control over your work.
Transcript
103 slides
-
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Hello! Brian Clozel @bclozel Stéphane Nicoll @snicoll -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Boot 2.2 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Java 13 1 2 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Dependency management upgrades 1 3 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Lots of features 1 4 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Important features 1 5 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Immutable @ConfigurationProperties 1 7 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Immutable @ConfigurationProperties 1 8 @ConfigurationProperties("acme") @ConstructorBinding public class AcmeProperties { private final Duration timeout; private final DataSize bufferSize; private final Security security; public AcmeProperties(@DefaultValue("10s") Duration timeout, DataSize bufferSize, Security security) { -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Immutable @ConfigurationProperties @ConstructorBinding @ConfigurationProperties("acme") data class AcmeProperties( val timeout: Duration = Duration.ofSeconds(10), val bufferSize: DataSize?, val security: Security) 1 9 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Immutable Config Props https://github.com/snicoll/demo-immutable-config-props #springone @s1p -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Health indicator groups management.endpoint.health.group.liveness.include=ping management.endpoint.health.group.readiness.include=db,redis GET /actuator/health/liveness GET /actuator/health/readiness 2 1 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ JUnit 5 // @ExtendWith(SpringExtension.class) @SpringBootTest class MyApplicationTests { @Test void resourceFileCreated(@TempDir Path tmpDir) { // ... } } 2 2 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ https://start.spring.io update -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Statistics -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How many projects do we generate a year? -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How many projects do we generate a year? -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How many projects do we generate a year? -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How many projects do we generate a year? ✅ -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How many projects do we generate a year? ✅ month -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What are the top 3 countries?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What are the top 3 countries?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What are the top 3 countries?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What are the top 3 countries?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What are the top 3 countries?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What’s the client split?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What’s the client split?* * Sep 2018 - Sep 2019 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What’s the client split?* * Sep 2018 - Sep 2019 (without China) -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Performance improvements -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Startup time 3 9 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Lazy Initialization 4 0 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Runtime Performance 4 1 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ GraalVM 4 2 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Reactive messaging with RSocket -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Reactive Streams RSocket Reactive Streams Reactive Streams -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ .Python .NET Go C++ JavaScript Java Reactive Streams Reactor RSocket -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Framework Spring Security Spring Boot RSocket Project Reactor Spring Cloud Gateway Spring Integration -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Framework Spring Security Spring Boot RSocket Project Reactor Spring Cloud Gateway Spring Integration -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ vs HTTP 5 2 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ RSocket is… 5 3 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ An application protocol for multiplex, duplex communication 5 4 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ WebSocket Déjà vu ? 5 5 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 5 6 WebSocket TCP UDP ... RSocket -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 5 7 Multiplex with 4 interaction models ... WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 5 8 PAYLOAD REQUEST RESPONSE Request Response -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 5 9 PAYLOAD REQUEST STREAM PAYLOAD PAYLOAD PAYLOAD Request Stream -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 0 REQUEST CHANNEL PAYLOAD PAYLOAD PAYLOAD PAYLOAD PAYLOAD PAYLOAD PAYLOAD Request Channel -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 1 REQUEST FNF Request Fire-and-Forget -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 2 Multiplex with 4 interaction models Duplex ... WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 3 Requester Responder 1 2 Client -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 4 Responder Requester 1 2 Server -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 5 Multiplex with 4 interaction models Duplex Reactive Streams ... WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 6 REQUEST_STREAM N = 2 PAYLOAD Back Pressure PAYLOAD PAYLOAD REQUEST_N N = 3 ... ... PAYLOAD PAYLOAD ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 7 Multiplex with 4 interaction models Duplex Reactive Streams Session/Stream resumption ... WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 8 REQUEST STREAM Connectivity Loss A B C D -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 6 9 RESUME Session Resumes after Reconnect C D E F -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Back pressure is per stream 7 0 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What about the total number of requests and streams? 7 1 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 7 2 Multiplex with 4 interaction models Duplex Reactive Streams Session/Stream Resumption Leasing ... WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 7 3 LEASE REQUESTS = 3 Requester Responder Request Throttling with LEASE -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 7 4 Multiplex with 4 interaction models Duplex Reactive Streams Session/Stream resumption Leasing Fragmentation & reassembly ... WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ 7 5 Multiplex with 4 interaction models Duplex Reactive Streams Session/Stream resumption Leasing Fragmentation & reassembly Heartbeats WebSocket TCP ... -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ RSocket support in Spring Boot 7 6 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Airport Radar Austin (AUS) BA-456 AF-123 S1-789 101110101001010 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Radar Collector Service Austin (AUS) 10111010100 10111010100 Dallas-Fort Worth (DFW) Airport radars [code + geolocation] Radar Collector -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Radar Collector Service Austin (AUS) 10111010100 Radar Collector 10111010100 Dallas-Fort Worth (DFW) RSocket TCP Airport radars [code + geolocation] -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Radar Collector Radar Collector Service Airport radars [code + geolocation] "locate.radars.within" (+latlng) "listen.radar.{code}" "find.radar.{code}" RSocket TCP -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Flight Tracker Web App Radar Collector Airport radars [code + geolocation] RSocket TCP Flight Tracker User Preferences RSocket WebSocket -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Flight Tracker Flight Tracker Web App User Preferences "locate.aircrafts.for" (+radars) "locate.radars.within" RSocket WebSocket "fetch.profile.me" "fetch.profile.{login}" -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Flights Application https://github.com/bclozel/spring-flights #springone @s1p -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Our personal favorites -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ How to Get Productive with Spring Boot The State of Kotlin Support in Spring State of Reactor 2019 Testing Spring Boot Applications Keeping Up with Java: Look at All These New Features! ... https://springoneplatform.io 8 9 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ What’s next? -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ ⚡Forward-looking statements⚡ -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Spring Boot 2.1.x EOL end of Q1 2020 9 8 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ Change of release cadence (6 months) 9 9 -
Unless otherwise indicated, these slides are © 2013-2019 Pivotal Software,
Inc. and licensed under a Creative Commons Attribution-NonCommercial license: http://creativecommons.org/licenses/by-nc/3.0/ GraalVM in 2020 1 0 0