Martin Ars, Alexis Claveau, Alexis Loret, Maud Van Dorssen
Since the website is not under constant use, it might take a few minutes for an instance to be up and running when you try to visit it, especially after logging. Don't despair and keep refreshing ! (Caching issues might also arise)
Posting tweet | 10 Last Messages | 50 Last Messages | 100 Last Messages | |
---|---|---|---|---|
Average | 497 ms | 187 ms | 198 ms | 198 ms |
Variance | 18816 | 3864 | 2509 | 2330 |
Posting tweet | 10 Last Messages | 50 Last Messages | 100 Last Messages | |
---|---|---|---|---|
Average | 497 ms | 194 ms | 204 ms | 232 ms |
Variance | 23583 | 7545 | 2735 | 8059 |
Posting tweet | 10 Last Messages | 50 Last Messages | 100 Last Messages | |
---|---|---|---|---|
Average | 618 ms | 140 ms | 154 ms | 170 ms |
Variance | 2966 | 776 | 1119 | 394 |
1000 Messages | 5000 Messages | |
---|---|---|
Average | 705 ms | 690 ms |
Variance | 28368 | 23358 |
You must add the project ID obtained when you created your project to the
sample's pom.xml
before you can deploy the code.
To add the project ID:
-
Edit the file
pom.xml
. -
For
<endpoints.project.id>
, replace the valueYOUR_PROJECT_ID
with your project ID. -
Save your changes.
To build the project:
mvn clean package
To generate the required configuration file openapi.json
:
mvn endpoints-framework:openApiDocs
To deploy the sample API:
-
Invoke the
gcloud
command to deploy the API configuration file:gcloud endpoints services deploy target/openapi-docs/openapi.json
-
Deploy the API implementation code by invoking:
mvn appengine:deploy
The first time you upload a sample app, you may be prompted to authorize the deployment. Follow the prompts: when you are presented with a browser window containing a code, copy it to the terminal window.
-
Deploy the composite indexes:
`gcloud app deploy src/main/webapp/WEB-INF/index.yaml`
-
Wait for the upload to finish.