Hi Ravish
The use of both MySQL and Cassandra in the system architecture serves specific purposes based on the characteristics of the data they handle. MySQL is employed for managing in-progress trips, where frequent updates and relational data structure are crucial. In this context, the number of rows populated for a single trip depends on the granularity of the data being tracked and the frequency of updates.
On the other hand, Cassandra is utilized for storing driver updates. Cassandra’s strength lies in handling large volumes of time-series data with high write throughput, making it suitable for scenarios like tracking and storing real-time updates from drivers. Therefore, while MySQL is optimized for relational data associated with in-progress trips, Cassandra complements the architecture by efficiently managing the high-velocity, time-series data generated by driver updates, ensuring a balanced and optimized storage solution for different types of information in the system.
Thank you