Playing with Azure Search and Cryptos
This project is taking advantage of Azure Search and Text Analytics API to analyze crypto currencies trends.
Tweets are being streamed to Event Hub, which triggers Azure Function that calls Text Analytics API to calculate sentiment of tweet. Then tweets and its sentiments are inserted into SQL Database. Azure Search index allows to effectively search through tweets. This index is being syncronized with SQL DB through integrated change tracking, and Azure Search indexer that runs on schedule.
It can be used for any topic analysis. More details in this blog post
Set user and password secrets in cmd:
dotnet user-secrets set dbuser <SECRET>
dotnet user-secrets set dbpass <SECRET>
componentDidMountfunction in CryptosAzs.tsx
- Create Azure Event Hub
- Create Text Analytics Cognitive Service in Azure Portal.
- Create Azure Function (Event Hub trigerred) to call Text Analytics API and insert result into SQL DB. You can check CryptoSentimentEventHubTrigger.csx and CryptosBlobTriggerCSharp.csx functions for reference.
- You can use TwitterClientWPF to stream tweets to EventHub.