Open
Description
Hi there – I'm looking for some guidance on improving this.
One of the benefits of fastboot is faster response times, but I've seen some routes take almost 7 seconds to load from the server. Is this not a fastboot issue? I am using this app server as such:
// frontend-server.js
const FastBootAppServer = require('fastboot-app-server');
const server = new FastBootAppServer({
distPath: 'dist',
gzip: true, // Optional - Enables gzip compression.
host: '0.0.0.0', // Optional - Sets the host the server listens on.
chunkedResponse: true, // Optional - Opt-in to chunked transfer encoding, transferring the head, body and potential shoeboxes in separate chunks. Chunked transfer encoding should have a positive effect in particular when the app transfers a lot of data in the shoebox.
});
server.start();
My Procfile:
web: node --optimize_for_size --max_old_space_size=460 --gc_interval=100 frontend-server.js
There are a lot of variables that I'm struggling to isolate. It could be my application code leaking memory, an addon leaking memory, the heroku configuration lacking the correct size, the particular buildpack I'm using, the way I've setup my FastBootAppServer initialization, or the other tooling I'd need.
I'm able to get this to work reasonably well locally, but I am spinning my wheels on the deployment step.
Metadata
Metadata
Assignees
Labels
No labels