You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
Currently the backend saves a requested book's assets as files and then re-reads them to generate the final output pdf. The pdf is again stored on the backend as a file and passes the file's location to the front end for download. This creates a few problems:
The server can only generate one book at a time (two people entering the website will cause issues)
Adds unnecessary complexity to the backend.
Proposed solution: keep image data in memory without saving the png files to the server. And add unique identifiers for each request that will be used in the pdf output's name. This way multiple pdfs can be generated at the same time, returned to the end-user correctly and removed safely at the end of the transaction without conflicting with other requests.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently the backend saves a requested book's assets as files and then re-reads them to generate the final output pdf. The pdf is again stored on the backend as a file and passes the file's location to the front end for download. This creates a few problems:
The server can only generate one book at a time (two people entering the website will cause issues)
Adds unnecessary complexity to the backend.
Proposed solution: keep image data in memory without saving the png files to the server. And add unique identifiers for each request that will be used in the pdf output's name. This way multiple pdfs can be generated at the same time, returned to the end-user correctly and removed safely at the end of the transaction without conflicting with other requests.
The text was updated successfully, but these errors were encountered: