Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue - Thread Safety #4

Open
SeanKilleen opened this issue Nov 9, 2018 · 0 comments
Open

Issue - Thread Safety #4

SeanKilleen opened this issue Nov 9, 2018 · 0 comments

Comments

@SeanKilleen
Copy link
Contributor

SeanKilleen commented Nov 9, 2018

Originally from https://github.com/excellaco/azure-sentiment-analysis/issues/1

Issue

The current handling of tweets is not thread-safe. In cases of high loads, there is a case where we may experience a sentiment score being incorrectly associated with a tweet.

Solution

A solution would be to encapsulate the logic for calling a cognitive service and the eventhub in a dedicated Azure Function (maybe a Durable Function?). Hence the Azure WebJob will solely focus on streaming data

Another solution would be to add an Azure Storage Queue that recieves input for each new event, with worker role picking up messages from the queue and sending them to the Azure EventHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant