In a microservice architecture on AKS I'm moving all "worker" services (scaled by ServiceBus messages using KEDA, including scale-to-zero) to self-contained compilation and the runtime-deps docker image, since they benefit from faster startup-times provided by AOT compilation.
Are there any drawbacks when doing the same to aspnet APIs? Or does the aspnet docker image provide anything on top? For context, they are stateless and multi-tenant, no data is held in memory.