This is the web/app server for a twitter sentiment analysis app.
Server built with python flask framework. Weksocket is used for server-side pushing. The whole app is built in Docker, for easier deployment on Elastic Beanstalk.
A daemon thread runing with the server collects twits. Every twit is inserted into database(Postgre on RDS), written to SQS, and pushed to all connected clients.
Twit Sentiment are POSTed to /sns endpoint by SNS, and then pushed to all connected clients.
All twits are marked on google heat map in realtime, and the sentiment trend are also updated in realtime.