Hacking transferring data

between Front-end to backend

Why ?

  • Is it good enough to save data in plain-text?
  • Does it make sense to compress data?
  • Does Http have any feature about compression?
 

Facts

  • Displaying the meters for a medium-size customer is extremely slow ~10 seconds
 

json

Saving data in text plain is not good enough

vs

gzip

1.8 Mega Bytes

20 Mega Bytes

90% smaller

Upload gzip 

with some magic

1. Get content 

6 . Return Data

WebEndpoint

2. Download Data

5. Azure Send Data

Authenticated User

enter

WebApp

Normal approach

File size 20Mb

20Mb

20Mb

Azure

File gets transferred twice

1. Get content 

6 . Redirect to temporal Url link

WebEndpoint

2. Request Url link File

5. return temporal Url link

Let's Hack it

7. download directly data

Authenticated User

enter

WebApp

1.7Mb

Gzip File size

1.7Mb

Azure

From 10 seconds

to

493 milliseconds

Hacking transferring data

By Jesús Estévez

Hacking transferring data

  • 778