Designing a GraphQL for real-time car traffic

  softwareengineering

I need to create the traffic data, but the issue is that you have several streets, and the streets can be so long you also need a start and end location, but I don’t know how long these segments need to be, should I use like 5 miles segments or something? If I allow the segments to be any length, then you could end up with a billion of segments in the end, so it wouldn’t be scalable, so I was wondering how companies like Google designed them. I need the db schema and how to go about updating the data, but the db schema is the most important.

New contributor

Sayaman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

LEAVE A COMMENT