Skip to content

Instantly share code, notes, and snippets.

@jessejlt
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessejlt/5424f9aef4d9e979fa35 to your computer and use it in GitHub Desktop.
Save jessejlt/5424f9aef4d9e979fa35 to your computer and use it in GitHub Desktop.
Sharedcloud collection performance

Is taking ~500ms to GET /collections/:id a bug or expected? What about taking ~1s to create a collection?

curl -w %{time_total} -iX POST https://cc-us1-stage.adobesc.com/api/v1/collections \
-H "X-User-Token: ---" \
-H "Authorization: ---" \
-H "Content-Type:application/json" \
--data-binary '{
  "collection_name": "1s3c5",
  "parent_collection": "77e10fd2-eb88-4845-8610-d3cae9f8efc4"
}'

HTTP/1.1 201 Created
Date: Tue, 26 Aug 2014 20:19:13 GMT
ETag: "1409084353623"
Location: https://cc-us1-stage.adobesc.com/api/v1/collections/9e977227-9acd-4afb-b98e-6ee40bb458c1
Server: nginx
x-request-id: eb0fd9f6-0944-46b8-af7b-3be99430b3a1
x-resource-id: 9e977227-9acd-4afb-b98e-6ee40bb458c1
Content-Length: 0
Connection: keep-alive

0.954

curl -w %{time_total} -iX GET https://cc-us1-stage.adobesc.com/api/v1/collections/9e977227-9acd-4afb-b98e-6ee40bb458c1 \
-H "X-User-Token: ---" \
-H "Authorization: ---"

HTTP/1.1 200 OK
Content-Type: application/json
Date: Tue, 26 Aug 2014 20:19:47 GMT
ETag: "1409084353623"
Server: nginx
x-request-id: b002f4e0-1d7b-4123-9873-b3f1f475b05c
Content-Length: 370
Connection: keep-alive

{
  "assets": [],
  "created": 1409084353622,
  "updated": 1409084353622,
  "parent_collection": "77e10fd2-eb88-4845-8610-d3cae9f8efc4",
  "ownerId": "1410241E51AB9F9E0A490D34@AdobeID",
  "creatorId": "1410241E51AB9F9E0A490D34@AdobeID",
  "parent_collections": [
    "77e10fd2-eb88-4845-8610-d3cae9f8efc4"
  ],
  "collection_name": "1s3c5",
  "sub_collections": [],
  "clientId": "creative_cloud",
  "collection_data": {}
}

0.497
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment