Join the IBM Code London Meetup group for hands-on workshops on a variety of technologies.
Create a soccer league dashboard app
Pull real-time scores, commentary, standings, and results into app using Akka, React, and IBM Cloudant
Soccer fans worldwide enjoy live weekly games of the various soccer leagues. And every week, there are many live feeds coming to the various websites in the form of scores, commentary, team standings, fixtures, results, etc. And there lacks a proper web application that can communicate with the providers and give real-time feedback to the soccer fans. For the fans of teams in La Liga, Premier League UK, Serie A, and Bundesliga, instead of having to go to multiple websites to get real-time scores, they just look at the dashboard for the aggregated real-time scores from all four leagues – a real time-saver. Since Akka is an asynchronous way of building powerful, reactive, concurrent, and distributed applications, a real-time soccer league dashboard would be an ideal use of Akka.
Akka consists of actors. An actor is the smallest unit of your Akka-based application. An Akka is a container for several components. The components include actors, state, behavior, mailbox, child actors, and supervisor strategy. Akka ensures that the communication is through asynchronous messaging and that it’s the only way to interact.
This pattern will demonstrate how to define Akka actors in an Akka cluster.
- Create actors for Akka.
- Expose Akka REST APIs.
- Actor to crawl and store data to NoSQL database.
- Deploy the app to IBM Cloud.
- User can interact with the app.