cloud-code-samples icon indicating copy to clipboard operation
cloud-code-samples copied to clipboard

Reduce startup time for Java samples

Open kelsk opened this issue 3 years ago • 1 comments

The Java language samples have overly long build times that can be upwards of 4 minutes.

The samples should be refactored to reduce startup time as much as possible.

kelsk avatar Mar 16 '21 05:03 kelsk

  • Cloud Run: The entire build averages 2.5 mins with 1 min being integration tests
  • Hello World and Guestbook: Deploy to staging is the longest averages 2.5min with the build is only 30-40s, polling for endpoint can also be an issue.

The main issue is the amount of time for the K8s deployment to become stable. The build is quick and there is not currently any optimization or refactoring for the app's start up time. Up to @kelsk to close or keep open.

averikitsch avatar Mar 10 '22 20:03 averikitsch

#101 may help here

ace-n avatar Aug 17 '22 15:08 ace-n

Pinged @kelsk who said this is good to close.

ace-n avatar Aug 25 '22 18:08 ace-n