Data Processing System Using CQRS Pattern and NoSQL in V2X Environment
AUTHORS
Sangkon Han,Department of Computer Science Engineering, Pusan National University, Busan, Republic of Korea
Jung-In Choi,Software Education Center, Pusan National University, Busan, Republic of Korea
ABSTRACT
The vehicle-to-everything (V2X) environment comprises a variety of devices that exchange or share vehicle-to-vehicle, vehicle-to-infrastructure, and vehicle-to-pedestrian information while the vehicles are being driven. In V2X environments, large amounts of unstructured data are recorded by various devices. Storing large amounts of unstructured data in a relational database would require all the data generated by the different types of devices to be normalized. In addition, the transaction-based Atomic, Consistency, Isolation, and Durability (ACID) characteristics of relational databases would not be suitable for processing large amounts of data of this nature. In this study, we apply the Command and Query Responsibility Segregation (CQRS) pattern to separate commands and queries and to process large-scale data efficiently. NoSQL, which provides specialized functions for handling unstructured data, as well as the commands and queries, can be separated; thus, NoSQL and RDBMS can be selectively used depending on the V2X environment and system characteristics. We propose a data processing system suitable for the V2X environment using a CQRS pattern and the NoSQL-based database. By applying the CQRS pattern, NoSQL and RDBMS can be used together. When storing large amounts of data, use NoSQL, and when providing information or statistics to users, select an RDBMS to use together. In addition, both repositories can be easily scaled up when processing large amounts of data, making efficient use of resources.
KEYWORDS
Command and query responsibility segregation pattern, CQRS, RDBMS, vehicle-to-everything environment, V2X
REFERENCES
[1] D. G. Choe and J.H. Jung, “Vehicular networking and applications for connected cars," Communications of the Korean Institute of Information Scientists and Engineers, vol.37, no.1, pp.45-53, (2019) DOI: 10.5626/KTCP.2019.25.10.500(CrossRef)(Google Scholar)
[2] N. Cheng, et al, “Big data driven vehicular networks,” IEEE Network, vol.32, no.6, pp.160-167, (2018) DOI: 10.1109/mnet.2018.1700460(CrossRef)(Google Scholar)
[3] M. Fowler, “CQRS,” URL: https://martinfowler.com/bliki/CQRS.html, Checked on 2019-08-01, (2011)
[4] M. Fowler, “Patterns of enterprise application architecture,” Addison-Wesley Longman Publishing Co., Inc., (2002)
[5] E. Evans, “Domain-driven design: tackling complexity in the heart of software,” Addison-Wesley Professional, (2004)
[6] R. Elmasri, “Fundamentals of database systems,” Pearson Education India, (2008)
[7] J. Manyika, “Big data: The next frontier for innovation, competition, and productivity,” https://www.mckinsey.com/business-functions/digital-mckinsey/our-insights/big-data-the-next-frontier-for-innovation, Checked on 2019-08-01, (2011)
[8] R. Zafar, et al, “Big data: the NoSQL and RDBMS review” Proceedings of International Conference on Information and Communication Technology (ICICTM), IEEE, pp.120-126, (2016) DOI: 10.1109/icictm.2016.7890788(CrossRef)(Google Scholar)
[9] V. N. Gudivada, D. Rao, and V. V. Raghavan, "NoSQL systems for big data management," 2014 IEEE World congress on services, IEEE, pp.190-197, (2014) DOI: 10.1109/services.2014.42(CrossRef)(Google Scholar)
[10] J. Han, et al, “Survey on NoSQL database,” Proceedings of the 6th international conference on pervasive computing and applications, IEEE, pp.363-366, (2011) DOI: 10.1109/icpca.2011.6106531(CrossRef)(Google Scholar)
[11] S. George, “NoSQL–NOT ONLY SQL,” International Journal of Enterprise Computing and Business Systems, vol.2, no.2, (2013)
[12] C. Kong, et al, “Acid encountering the cap theorem: Two bank case studies,” Proceedings of the 12th Web Information System and Application Conference (WISA), IEEE, pp.235-240, (2015) DOI: 10.1109/wisa.2015.63(CrossRef)(Google Scholar)
[13] B. Meyer, “Object-Oriented Software Construction,” Prentice Hall, (1997)
[14] Y. Greg, “CQRS Documents,” https://cqrs.files.wordpress.com/2010/11/cqrs_docume nts.pdf, Checked on 2019-08-01, (2010)
[15] D. Esposito, “Cutting edge - CQRS and message-based applications,” https://msd n.microsoft.com/magazine/mt238399, Checked on 2019-08-01, (2011)