Challenge
The client’s program had trouble producing dynamic PDF invoices, which led to:
- on the server an excessive number of concurrent PDF requests
- Processing is delayed by slow database queries
- with several invoices there were problems with performance.
Solutions:
We use AWS Lambda and Amazon S3 to move the PDF creation process to a server less architecture:
- Data Processing: from Amazon RDS AWS Lambda does computations and pulls invoice data.
- PDF Generation: Lambda generates PDFs dynamically using processed data,.
- Cloud Storage: generated PDFs are safely kept in Amazon S3 For scalability and convenience.
- Instant Access: Lambda provides an S3 URL that will be downloaded as a PDF right away from the interface.
Results
- Enhanced speed by on-demand Lambda execution
- Economical scalability without the need for additional servers
- Improved reliability for handling multiple PDF requests
- Secure, cloud-based storage ensuring high availability
Key AWS services used
- AWS Lambda
- Amazon RDS
- Amazon S3