~/talk

Zipfiles on the Fly with Micronaut

Talkat Greach 2019 · 2019-03-28..03-30· [microservices, reactive-programming]
links:none on file
slides:none on file

Shows how to stream ZIPs without materializing them by using Micronaut with an RxJava 2 Flowable that emits 4KB chunks into a ZipOutputStream in stored mode. Precompute CRC and file size per image, read files on demand, and use backpressure so memory stays bounded. Original naive approach OOMs with eight slow clients; this solution runs under 100 MB heap with thirty parallel downloads and successfully serves real image ZIPs.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 0:46Problem and solution overview
  3. 3:17First naive implementation
  4. 5:26Memory issues with naive approach
  5. 6:30Back pressure and reactive programming
  6. 8:18Micronaut and Netty handling
  7. 9:03Hot vs cold observables
  8. 10:51Flowable and back pressure
  9. 11:52State and generator setup
  10. 12:37Zip files in Java explained
  11. 14:24Deflated vs stored mode
  12. 16:11Micronaut reactive solution
  13. 17:57Flowable implementation details
  14. 19:02Producer state class
  15. 20:28Chunk output handling
  16. 23:39Testing the reactive solution
  17. 24:24Key learnings summary
  18. 26:11Live demo setup
  19. 27:13Demo results and observations
  20. 28:04Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.