- 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.
Update 2. I have tried to use App Engine Flex environment, with different options. Still same result. Maybe I can see difference when I am calling same API for more times instead 30s response I get 28 25. So my conlclusion is that App engine (in my understanding) is not suitable to work with JAVA complex CPU peak operations (FILTER, SORT ENTITY) .. On Compute Engine my solution works fine. Then I went to try on GKE and as well it works perfect there from 30s (without startup overhead) response decreased to 200ms. In GCE or GKE i use lowest resource rank VM.