Google App Engine: Traffic Flashcards
1
Q
What does App Engine consider a ‘version’?
A
Every time you redeploy your application with changes made
2
Q
What are the 3 major options for splitting traffic?
A
- IP Address
- Cookie
- Random
3
Q
By default, where does google automatically redirect 100% of its traffic to?
A
The newest version
4
Q
How can we fetch an environment variable?
A
Using the getenv() function in the os module
5
Q
How do we fetch the instance ID
A
Use the getenv() function with ‘GAE_INSTACE’ as a parame
6
Q
How do we fetch the current version?
A
Use the getenv() function with ‘GAE_VERSION’ as a parameter to store it in a variable