Grokking the Modern Frontend System Design Interview
Vote

0% completed

​

Design Live Ride Tracking

Suppose a driver's phone reports its position every 4 seconds, and the car drives at 36 km/h, which is 10 meters per second. Between two reports the car moves 40 meters. On a street-level map where one pixel covers about 2 meters, that is a jump of 20 pixels every 4 seconds.

The screen, meanwhile, can draw 60 frames per second, which is 240 frames between two reports. If the marker moves only when a report arrives, it sits still for 239 frames and then jumps. If the client asks for positions more often, it uses more data and battery for a result that still jumps, only by smaller amounts.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content