Spring REST Gigantomania: Handling Multi-Gigabyte POST Requests
summary
Covers implementing streaming processing of multi-gigabyte HTTP POST requests in Spring to handle cases where requests exceed available memory. Explains four concrete scenarios and techniques: sending large data over HTTP, receiving/streaming large HTTP payloads in Spring, writing streamed data into PostgreSQL, and reading large data from PostgreSQL — all aimed at bounded-memory, efficient resource usage.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 3:15Giant POST requests problem
- 7:30Project requirements and limits
- 10:40Client data sending
- 13:11Server data receiving
- 16:28Handling multipart requests
- 21:48Buffering and disk issues
- 24:40Streaming solution
- 28:57Custom filter implementation
- 33:33Writing to database
- 34:38JDBC driver tuning
- 36:11Connection pool problem
- 38:56Streaming workflow
- 41:01Summary and pitfalls
- 43:07Conclusions and outlook
- 44:32Q&A
related talks
20mFrom Bytes to Brilliance : Optimizing Large File Delivery in REST APIs
43mSave the Last Gigabyte of RAM
50mWe Must Save the Last Giga of RAM
52mSpring Apps at Scale from 0 to 5B to 100B+ Requests
36mThe Perils of Large Files
20mCloud Native Spring for Relational Databases
44mBatching for the Modern Enterprise
54mReactive Spring
