Thanks for reading and for your question.

However, I don’t know Javalin and its behaviour. In your case, as you understand, the server is ready (serving port open and listening, therefore Cloud Run considers the server UP) before it has loaded all the routes to serve.

You should have boot option to prevent this situation. Maybe to perform eager loading instead of lazy loading. It’s a Javalin question more than a Cloud Run question.

However, in the alpha tester channel, I saw some message that talked about a readiness probe, to answer issues like yours. I don’t know if it’s in the roadmap.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

guillaume blaquiere
guillaume blaquiere

Written by guillaume blaquiere

GDE cloud platform, Group Data Architect @Carrefour, speaker, writer and polyglot developer, Google Cloud platform 3x certified, serverless addict and Go fan.

Responses (1)

Write a response

Yeah, it shouldn't take longer to load the routes, at least locally it starts listenning to requests immediately. Cloud run is taking 2 minutes to start receiving the requests.