how to make gae adapt the great firewall

21
GAE How to make GAE adapt the Great Firewall App Engine ja night #1 ‑ LT 2 Mar. 2017 bit.ly/gae‑china

Upload: hayato-yoshikawa

Post on 12-Apr-2017

447 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: How to make GAE adapt the Great Firewall

GAEHow to make GAE adapt the Great Firewall

App Engine ja night #1 ‑ LT

2 Mar. 2017

bit.ly/gae‑china

Page 2: How to make GAE adapt the Great Firewall

@hayatoy

GAE/Py 7~8 ?

APAC

TensorFlow

Presenter

"Local district in Shanghai" by me

Page 3: How to make GAE adapt the Great Firewall

Motivation

Page 4: How to make GAE adapt the Great Firewall
Page 5: How to make GAE adapt the Great Firewall

Web +10

Page 6: How to make GAE adapt the Great Firewall

GAE

Page 7: How to make GAE adapt the Great Firewall

 *.appspot.com 

Image API CDN get_serving_url() 

‑>  lhx.ggpht.com 

Mail API mail.send_mail() 

‑>  [email protected] 

Google Account  users.get_current_user() 

Page 8: How to make GAE adapt the Great Firewall

Don't give up... Cleave to hope tillthe very end. When you give up,that's when the game is over.

‑ Prof. Anzai

Page 9: How to make GAE adapt the Great Firewall
Page 10: How to make GAE adapt the Great Firewall

appspot.com

Page 11: How to make GAE adapt the Great Firewall

Custom Domain khttp, https OK

CNAME ghs.googlehosted.com www

CNAME ghs-svc-https-cXX.ghs-ssl.googlehosted.com www

 DNS   8.8.8.8 

Page 12: How to make GAE adapt the Great Firewall

lhx.ggpht.com

Page 13: How to make GAE adapt the Great Firewall

Non‑SSL Public GCS Custom Domain

class BlahBlahDownload(blobstore_handlers.BlobstoreDownloadHandler): def get(self, key): key = str(urllib.unquote(key))

blob_info = blobstore.BlobInfo.get(key)

# Edge cache self.response.cache_control = 'public'

self.response.cache_control.max_age = 300

self.send_blob(blob_info)

 Edge Cache 

Page 14: How to make GAE adapt the Great Firewall

Mail API

QQ

Custom Domain MX OK

Page 15: How to make GAE adapt the Great Firewall

Google Account

Page 16: How to make GAE adapt the Great Firewall

Google Account

Page 17: How to make GAE adapt the Great Firewall
Page 18: How to make GAE adapt the Great Firewall

WebSitePulse http://www.websitepulse.com/help/testtools.china‑

test.html

http(s)

GFW Timeout

Page 19: How to make GAE adapt the Great Firewall

Google Analytics

Page 20: How to make GAE adapt the Great Firewall

NG

API OK

*

Page 21: How to make GAE adapt the Great Firewall

Thank you!

bit.ly/gae‑china