Azure - What service to use for Arduino data (iot)

2019-09-15 04:51发布

问题:

I have an Aurdino YUN where i get some water data ( how much i have used ) I would like to get this data on the web and have just started to check around with azure which seems to be an amazing service but a bit overwhelming.

I expect my project to grow and im a bit confused as to what service i should use.

My questions is. What service should i use? 1. Mobile service 2. azure event Bus

I have read alot of guides and they seem to use the mobileservice but Microsoft seems to want me to use the eventbus.

Can someone please clarify the difference on the services or recommend me which one to use?

BR Emil

回答1:

That's because the two services do completely different things. In fact, you could almost consider one the opposite of the other:

  • Mobile services provide services to mobile devices to call. While you could use them to post event streams, they aren't optimised for this. They don't store the stream, have no concept of consumers, etc. You would have to write everything that an Event Hub does by yourself.
  • Event Hubs exist to accept a lot of data events from a large number of devices. It's designed to accept millions of events per second

Mobile Services just aren't made for event processing.

Event Hubs offer a lot of advantages:

  • The stream is cached and queued, so you don't have to consume events right away
  • You have a simple API to define consumers, without bothering about event storage etc. You just call receiver.Receive() to read the next event from the stream.
  • You can have multiple consumers processing a stream.
  • Consumers can stop and resume processing at specific points in a stream using checkpoints. This way, if a consumer crashes and restarts it won't lose events after the last checkpoint.
  • Scaling is very easy if the traffic is high, you simply buy more throughput units

You'll find a much better explanation in the Event Hubs Overview article at MSDN.



回答2:

I recommend you to use Azure Event Hub. it's pure and reliable message queue so that you can understand it and utilize it easily.

Mobile service is not quite applicable to your project as it's normally suitable for a service which consists of OAuth authentication, mobile push message, and NoSQL (Azure Table) data storage.



标签: azure iot