次の方法で共有


云集万物:支持百万级设备实时互连的Azure事件中心 (Event Hubs)

 

?????????????,?:???????????Windows Azure ????(Notification Hub),??????Windows ?????? (WNS)?Microsoft ?????? (MPNS)?Apple ?????? (APNS)?Google Cloud Messaging (GCM)??????????,????????????(????????)????????

????,Azure?????????????????????,????? (Event Hubs)?

?????????,????????????????(????????????????)????????????????,????????,????????,????(Inputs);????????,????(Outputs);??,Azure?????????(Processing)?

clip_image001

????,????????:????????(Mobile First, Cloud First);????,?? –> ???? -> Azure? –> ???? -> ????????????????????,?????????IPO?

????,????????,???????”????????“,????”????????“?

???????????,”????????“????????????:?(Azure)??(Hub???,???Event Hub?Notification Hub)???(?????????)??(????????)??

 

????????????????,???,

clip_image002

??????????????????,???????(Partition Count)???????(Message Retention Days),???:

clip_image003

??:??(Partition)????????????,?????????(Partition Key),??:

EventHubClient ec = EventHubClient.Create(“Event Hub Instance1");

EventData ed = new EventData();

ed.PartitionKey = "SourceID";

ec.Send(ed);

?????????,??????PartitionKey,??????????

 

??,??????????????????????,????(Token)???(SecretKey)??????????????,???????????????,????????????

 

???????????EventData?,?????????????EnqueuedTimeUtc???,????UTC???????(???????)?

??????????????,??????????????

?????MSDN????:EventData Class