Dynamic ITypeModule and start-up time #6272
-
I'm using a custom What's the recommended way to trigger building up the schema at application start-up, rather than waiting for the first request? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This should do the trick: https://chillicream.com/docs/hotchocolate/v13/performance#startup-performance |
Beta Was this translation helpful? Give feedback.
This should do the trick: https://chillicream.com/docs/hotchocolate/v13/performance#startup-performance
Since the warmup is done using a hosted service, the app won't accept any requests until the warmup process is finished. You can nicely combine this with readiness probes in Kubernetes for example to only route requests to the new container, once the warmup is finished.