Skip to content

[api] set follow_redirects=False on App Engine; recommended in docs#168

Merged
yannmh merged 1 commit intoDataDog:masterfrom
evanj:urlfetch-follow-redirects-false
Oct 11, 2016
Merged

[api] set follow_redirects=False on App Engine; recommended in docs#168
yannmh merged 1 commit intoDataDog:masterfrom
evanj:urlfetch-follow-redirects-false

Conversation

@evanj
Copy link
Copy Markdown

@evanj evanj commented Oct 10, 2016

The documentation at the following URL states: "Explicitly set
follow_redirects=False when calling Urlfetch, as it avoids a heavier-weight
service designed to follow redirects." I have not been able to measure any
significant difference, but since the Datadog API doesn't use redirects,
this should be a safe change. Source:

https://cloud.google.com/appengine/docs/python/microservice-performance#use_the_shortest_route

We will be using this in production at Bluecore very shortly. Happy to abandon this or sign a CLA or whatever you might want me to do. Thanks!

The documentation at the following URL states: "Explicitly set
follow_redirects=False when calling Urlfetch, as it avoids a heavier-weight
service designed to follow redirects." I have not been able to measure any
significant difference, but since the Datadog API doesn't use redirects,
this should be a safe change. Source:

https://cloud.google.com/appengine/docs/python/microservice-performance#use_the_shortest_route
@yannmh yannmh added this to the 0.15.0 milestone Oct 11, 2016
@yannmh yannmh self-assigned this Oct 11, 2016
@yannmh
Copy link
Copy Markdown

yannmh commented Oct 11, 2016

Thanks @evanj 🙇

The Datadog API does not indeed use redirects. Your changes are much appreciated!

@yannmh yannmh merged commit f2d3df5 into DataDog:master Oct 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants