Alfat Saputra Harun
Alfat Saputra Harun

Reputation: 1131

Google App engine + Spring = slow startup?

I read that Google App Engine (GAE) will shut down your application if it goes idle, and startup/boot everything again when it gets a request. And i know that Spring startup is slow, like 2-3 seconds even for a small web app. Is working on GAE using Spring really suffer from this badly?

Thanks in advance.

Upvotes: 6

Views: 2269

Answers (1)

jirungaray
jirungaray

Reputation: 1674

It's really not that bad but considering your instances are being shutdown and started constantly, you should work on getting your startup as fast as possible. A few pointers to consider:

  1. Enable warmup requests
  2. Enable resident instances
  3. Optimize Spring config (There are great suggestions in this article)

Upvotes: 5

Related Questions