I would be curious to see more detail about their warmup handler practices. Did they tune the JVM for it or is there some way to deterministically invoke the right JIT'ing.
0: https://jcp.org/aboutJava/communityprocess/ec-public/materia...
In a sense, you have to have a good amount of baseline traffic to end up with that problem, which reduces the percentual impact. So the problem is less pronounced than with a function that is very rarely run, where a high percentage of function calls are cold.
(In theory, the worst case where a CloudWatch trigger would be mostly useless is that a function is totally idle and removed from warm-state, and then gets a huge concurrent spike, is idle again, gets a spike etc. But that is not a realistic traffic pattern, I assume. It would also break with existing auto-scaling that would be even slower with bringing up new instances.)