Questions about scalability and reliability for IoT

Hi All,

Still pretty new to Mongo but have developed an IoT proof of concept writing to an Atlas cluster from a device in the field.

My questions now are around Scalability and Reliability.

Is writing directly to my cluster from my device the recommended way to interact for an IoT application? Is this scalable to 100 or 1000 or 10000 devices?
If not, what would you recommend? I am familiar with some of the AWS infrastructure and could envision using their IoT services to push data to a router that would batch it to my clusters. I also have a local MongoDB on the device for buffering so could batch send from devices to the hosted Cluster.

Open to any feedback or suggestions.

Thank you all,