9. Nielsen’s server
ETL
Candidate Votes
Visualisation
template
1 2 3 4
Azure Ubuntu server
Singapore
Gramener
Visualisation server
Real time
nginx
1 2 3 4
SQL Server
CNN Windows server
Noida, India
ETL
rsync
Candidate Votes
CNN WinXP laptop
Noida, India
Every 10
seconds
Every 10s
Let’s optimize
backwards
22. Nielsen’s server
ETL
Candidate Votes
Visualisation
template
1 2 3 4
Azure Ubuntu server
Singapore
Gramener
Visualisation server
Real time
nginx
1 2 3 4
SQL Server
CNN Windows server
Noida, India
ETL
rsync
Candidate Votes
CNN WinXP laptop
Noida, India
Every 10
seconds
Every 10s
Now, optimize
the rendering
23. We need these
filters to work
instantly
We cannot
afford a server
request for
every filter
change
We need client-side content
generation, driven by data
31. Nielsen’s server
ETL
Candidate Votes
Visualisation
template
1 2 3 4
Azure Ubuntu server
Singapore
Gramener
Visualisation server
Real time
nginx
1 2 3 4
SQL Server
CNN Windows server
Noida, India
ETL
rsync
Candidate Votes
CNN WinXP laptop
Noida, India
Every 10
seconds
Every 10s
Finally,
optimize data
32. 1.5 MB of data every second
but some of it is static
some is redundant
and some misspelt or wrong
42. Does age make a difference?
Do old candidates win less often?
43. 1%
2%
4%
6%
9%
11%
14%
11%
16%
18%
22% 22%
33%
0%
10%
20%
30%
40%
25-30 30-35 35-40 40-45 45-50 50-55 55-60 60-65 65-70 70-75 75-80 80-85 85-90
0
500
1000
1500
2000
2500
Win %
The number of winning candidates as a % of
candidates in the age group
Candidates
The number of candidates in each
age group
LokSabha(2004onwards)