Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 870
Alfat Saputra Harun Avatar asked May 09 '15 00:05

Alfat Saputra Harun


People also ask

Why is App Engine so slow?

The issue described about google app engine slowness is probably caused by a cold start. Google app engine front-end instances sleep after about 15 minutes. You could write a cron job to ping instances every 14 minutes to keep the nodes up.

Does the Spring Framework work with Gae?

Getting Started and Deploying Spring Boot application on Google App Engine (GAE) So spring boot is versatile web framework and pretty much every java developer these days use this and Google app engine or GAE is a Platform as a Service and cloud computing platform for developing and hosting web applications.


1 Answers

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)
like image 120
jirungaray Avatar answered Oct 01 '22 05:10

jirungaray