How to create normal Backend service on App Engine

92 views
Skip to first unread message

Vilius

unread,
Sep 3, 2020, 5:38:30 AM9/3/20
to Google App Engine
  • I have created Spring application in app engine B2, I can see in logs that application takes 1s to complete data filtering(after wakening application up). When in my local machine it takes 10ms.
  • Data size is really small and logic is not so complex, just begining of the project.

So my questions is it possible that my app engine instance are lacking of some resources or smth? Maybe I am lacking of some configuration or JAVA OPTIONS, because now I use default. Maybe someone has faced similar permormance issues.

Update. Again I have tried to use B1 B2 B3 B4 instances. Same results. Feels like the applications has really small amount of resources.

Problem solved, when I created Compute Engine VM. In virtual machine I have running docker image with the same application. And now it works fine. Responses are great.

I would love to use App Engine, but still cannot figure out what causes this. I use all default settings of app.yaml from google tutorials with no additional options.

Vilius

unread,
Sep 3, 2020, 6:13:47 AM9/3/20
to Google App Engine
Another method in my code. On App Engine takes 30s, on Compute Engine VM takes 400ms. Tried changing B classes no difference. Still feels like App Engine instance is lacking of CPU

pravanjan palai

unread,
Sep 3, 2020, 6:46:13 AM9/3/20
to Google App Engine
Hi , 
 Have you tried enabling lazy initialization? please follow this doc for the same 
https://spring.io/blog/2019/03/14/lazy-initialization-in-spring-boot-2-2

Thanks,
Pravanjan

Vilius

unread,
Sep 3, 2020, 6:57:22 AM9/3/20
to Google App Engine

Thank for answer. But this related to startup of the application. I have problems after application starts up. After its waken up.  So I am pretty sure lazy initialization will not improve my application overall performance.

ikerv

unread,
Sep 18, 2020, 7:37:05 AM9/18/20
to Google App Engine
Hello,

Have you tried using idle instances and enabling warmup requests ?
That will improve the scaling of the application, therefore it should make it start faster.

Kind regards.
Reply all
Reply to author
Forward
0 new messages