Optimizing Backend API Performance
summary
Describes concrete fixes: use HikariCP connection pooling to cut connect/close overhead, add @Cacheable for method results to eliminate repeated DB hits, switch logging to asynchronous (Logback/Log4j async appenders) to remove I/O blocking, and apply payload compression like gzip/brotli while balancing CPU cost. Explains pagination choices (offset vs cursor) with cursor preferred for large datasets, recommends monitoring with Prometheus and Grafana, and shows these measures measurably lower latency and DB load.
AI-written summary · about
chapters (10)
- 0:00Introduction and Speaker Background
- 1:26Importance of API Performance
- 2:57Common API Performance Bottlenecks
- 5:18Solutions for API Performance Issues
- 5:43Pagination Techniques
- 7:17Asynchronous Logging
- 8:09Caching Strategies
- 9:23Payload Compression
- 10:53Connection Pooling
- 12:08Key Takeaways and Conclusion
related talks
46mSpring Backend Performance: Techniques Every Dev Should Know
26mBuild a performance-optimized GraphQL API
21mHigh Performance APIs through Caching
35mAWS Lambda performance tuning
42m3 easy performance improvements in your microservices architecture
30mCaching, Payloads, and Other Dark Arts
26mCache Strategies with Best Practices
37mCache is King: Get the Most Bang for Your Buck From Ruby
