Introduction to Event Hub
Event Hub is a service made by BYU to help integrate functions. It is really powerful because it makes it easy to keep your database in sync with the rest of BYU’s data. With out Event Hub we would be put in a tricky situation. Let’s say that someones favorite color was saved in our DynamoDB and then they got married (As you can imagine, this would be a common occurrence at BYU). Well, now they have a different name than the one in our database. The name would probably get changed in the main database, but what good would that do us? One option we have is to constantly check the database by calling the Persons once an hour or on some other regular interval, but that would lead to a lot of wasted requests (this is called polling for data). Here is where Event Hub comes in, we can subscribe to in with what is called a webhook (see https://sendgrid.com/blog/whats-webhook/ for more info). Then Event Hub will tell us when someone changes their name. Let’s go try it out!