๐๐ผ๐น๐ฑ๐๐๐๐ถ๐ผ๐ป ๐ฃ๐๐ ๐ฆ๐ฐ๐ฎ๐น๐ถ๐ป๐ด
cfdocument slows down your app. PDF rendering uses too much CPU. It runs on the request thread. This creates a bottleneck.
Use these three fixes:
- Move generation to a queue. Use cfthread or runAsync().
- Cache finished PDFs. Do not render identical documents again.
- Offload storage to Amazon S3. Use native s3:// support.
These steps keep your web tier fast under heavy load.