0

I am developing multiplayer game backend and I have decided to use Google Container Engine to install my docker image. As datastore, Google Datastore sounds fine but I have run some performance tests over it, it doesn't look promising.

I am connecting Google Datastore from Container Engine over gcloud-java api with private key and retrieving a query result may take approximately 1.5 sec so this is huge response time for me

What am I doing wrong?

This is how I get remote connection.

options = DatastoreOptions.builder()
                .projectId(PROJECT_ID)
                .authCredentials(AuthCredentials.createForJson(
                        this.getClass().getResourceAsStream(PATH_TO_JSON_KEY))).build();

        dataStore = options.service();
4

1 に答える 1

0

同じ問題がありますが、ローカル マシンでのみ発生します。アプリケーションと Docker コンテナを Google Cloud Compute にデプロイしたところ、この問題は解決しました。(たとえば 0.2 秒)。

幸運を!

于 2016-05-12T14:23:54.630 に答える