Efficient web apps with Spring Boot 2
summary
A Spring Boot 2 MVC dashboard is refactored to boost efficiency without a full rewrite: RestTemplate calls become WebClient + Reactor pipelines that zip three upstream services (stats, events, top 10 IPs) and perform per-IP reverse lookups in parallel. Observability is added with Actuator and Micrometer → Prometheus dashboard so a 7.8s peak lookup reveals itself; a timeout 500ms fallback to the paid lookup cuts visible max latency to ~300ms. Server‑sent events streaming is implemented for real‑time updates. Code: https://github.com/snicoll-demos/initializr-stats
AI-written summary · about
chapters (4)
- 0:00Start
- 21:39connect your browser to the spring bootie application
- 29:30make the prometheus endpoint public
- 38:49design an configuration structure for your application keys
related talks
59mEfficient web apps with spring boot 2
47mSpring Boot 2.0 Web Applications
47mWhy You Don't Need to Worry about Scaling Your Java Webapp
40mREACTIVE A New Hope! Learn From a Performance History
24mSpring: Your Next Java Micro-Framework
39mHow to Reduce the Footprint of Your Spring Boot Applications
45mReactive web services
48mHitting the “refresh” button on your Spring web application
