{"id":28101,"date":"2021-04-08T15:00:15","date_gmt":"2021-04-08T14:00:15","guid":{"rendered":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/?p=28101"},"modified":"2022-02-10T21:05:43","modified_gmt":"2022-02-10T20:05:43","slug":"using-power-bi-and-logic-apps-to-analyse-social-media-streams","status":"publish","type":"post","link":"https:\/\/www.microsoft.com\/en-gb\/industry\/blog\/technetuk\/2021\/04\/08\/using-power-bi-and-logic-apps-to-analyse-social-media-streams\/","title":{"rendered":"Using Power BI and Logic Apps\u200b to analyse social media streams"},"content":{"rendered":"
<\/p>\n
There are numerous technologies that can be utilised to stream, analyse and visualise tweets on Azure, including traditional Big Data technologies such as Hadoop, Kafka, Spark, Storm, No SQL DBs and more. However, there are also a number of PAAS services that can be utilised to achieve the same result, with much less coding, configuration and setup effort and improved maintenance and HA\/DR capabilities.<\/p>\n
One simple pattern for twitter analytics is this:<\/p>\n
<\/p>\n
LogicApp<\/strong> is used to pull the data from Twitter periodically using the inbuilt Twitter connector, the Cognitive Services Text API<\/strong> can be called from within LogicApp<\/strong> and the enriched data inserted into SQL DB,<\/strong> and Power BI<\/strong> can be used to generate aggregates\/measures\/KPIs and to visualise the data. Cognitive Services<\/strong> provides a variety of machine learning services which are extremely useful for social media analytics such as sentiment analysis, moderation (less blushes if the profanity is automatically removed), language translation and intent (whether they asking a question or making a complaint).<\/p>\n <\/p>\n <\/p>\n <\/p>\n <\/p>\n This is an awesome architecture for rapidly prototyping a solution and allows for business rules\/logic to be changed rapidly. However, for a production architecture it has weaknesses:<\/p>\n <\/p>\n <\/p>\n The architecture can be enhanced as per the above, with the addition of Event Hub<\/strong>, Stream Analytics<\/strong> and Blob Storage:<\/strong><\/p>\n <\/p>\n Additional workflow processing for scenarios such as responding to customer complaints and queries, identifying and pursuing leads, modifying marketing campaigns, enhancing events experience can handled either by:<\/p>\n And\/Or<\/strong><\/p>\n These options are illustrated below:<\/p>\n <\/p>\n The decision point on the 2 methods is down to the use case and what the response time and analytics window for tweets are. For instance, altering a marketing campaign based on tweets received over a week would be an appropriate cold path use case. Responding to a customer complaint or query is an appropriate hot path use case.<\/p>\n <\/p>\n There are numerous technologies that can be utilised to stream, analyse and visualise tweets on Azure, including traditional Big Data technologies such as Hadoop, Kafka, Spark, Storm, No SQL DBs and more. However, there are also a number of PAAS services that can be utilised to achieve the same result, with much less coding, configuration and setup effort and improved maintenance and HA\/DR capabilities.<\/p>\n","protected":false},"author":430,"featured_media":21801,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"_classifai_error":"","footnotes":""},"categories":[594],"post_tag":[307,1631,519],"content-type":[],"coauthors":[1260],"class_list":["post-28101","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technetuk","tag-power-bi","tag-power-platform","tag-technet-uk"],"yoast_head":"\n\n
\n
\n
\n
\n
\n
\n
\n
\n
Resources<\/h2>\n
\n