MongoDB Atlas is used in conjunction with Apache Kafka and MQTT protocol for data streaming and real-time analytics in the industrial internet of things (IIoT) sector. MongoDB's time series collections are utilized to efficiently store and process large volumes of time-series data, allowing for real-time operational data-driven applications and analytics. The combination of MQTT + Kafka + MongoDB enables the seamless movement of data from IoT devices to a cloud-based environment, where it can be processed and analyzed in real-time. Additionally, MongoDB Atlas provides features such as Online Archive to optimize costs by storing "cold" data in cheaper storage while maintaining queryability. This setup allows for the creation of real-time dashboards and analytics using tools like Atlas Charts.