Lambda monitors a DynamoDB table, which is populated with votes generated by texting RED, BLUE, or GREEN to a phone number provided by Twilio. When the table is updated, Lambda invokes code to query the table and aggregate the votes, which are used to create the graph above.