Optimizing Your App for Today’s Internet
Optimizing Your App for Today’s Internet
WWDC 2018
QUIC (Quick UDP Internet connection)
Coming Soon
- New transport protocol
- IETF Standardization in progress
TLS 1.3 (Transport Layer Security)
Coming Soon ( Testing on iOS 12 )
- App don’t need to make any changes.
- If you have tailored certificates, your server have to record your certificate authority in the public logs.
Problem
Solution
API Choices
- You can access the Network.framework directly 👍
It’s good for when you do something with the Sockets.
HTTP/2 Connection Coalescing
Old
Every time, a server checks the certificate. (Inefficient)
New
Reuse the certificate
Reduce Request Size
HTTP Cookies
- Specify domain and path
- Smaller cookies
- Delete unwanted cookies or set expiry
- Save state on server
HTTP compression
- Gzip (HTTP, HTTPS)
- Brotli (HTTPS Only, Optimized for text and HTML)
Responsive Data Type ( Network Service Type ) 👍
- Good for a payment, checkOut request
- Slightly higher than the default
Use Background Session
- Utilizes system intelligence
- Transfers continue when your app is not running