Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Delay in server-side rendering after a few minutes of idling #1368

Closed
@magnus-tretton37-zz

Description

@magnus-tretton37-zz

I've applied SSR to a React/Redux app pretty much exactly like the docs here describe (in combination with the example template for the react+redux SPA template). Everything works, but if I let the app idle for just a few minutes, the page load suddenly takes a second extra (this is running just the asp.net core process, outside IIS, and it's not the very first startup-load, that understandably takes slightly longer). The same thing happens when I build and run the VS template (hello world w weather forecast), so it doesn't seem to be just my own app.

It might not sound like a lot, but it's frustrating when a reload (without cache) takes 2-300 ms and a"fresh" page load takes 1.2-1.3 s. You say here #589 that there is no shutdown of anything node-related once it's all started, but the difference in loading time between consecutive page loads or with a few minutes in between is noticeable (and measurable in chrome devtools). So what could be behind this behavior? And is it avoidable?

I'm using node 8.9.0, dotnet core 2.0, the latest npm and nuget packages where applicable. Thanks for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions