Blue Cloud Mirror Architecture Diagrams

Blue Cloud Mirror is a game where players need to show specific emotions and do specific poses. In this article I describe briefly the used technologies.

You can play the game online. All you need is a webcam and a Chrome browser.

The game uses key technologies of the IBM Cloud and has three main parts:

  • Core game: Implemented as serverless web application since it is primarily used during conferences only
  • Users service: Implemented via IBM Cloud Private to avoid storing the personal data in a public cloud
  • Scores service: Implemented via Cloud Foundry Enterprise Edition to highlight easy changes via the ‘cf push experience’ (for example theme adoptions for different conferences)

Thomas, Harald and I have planned to write more articles about the different part of the application. This articles gives a high level overview.

The first diagram gives an overview of the key components.

diagram-overview

Note that there are two different versions per diagram. One version describes what we use in the GitHub project. That version uses Minikube for the users service and Cloud Foundry Public Applications for the scores service so that even IBM Cloud users with a free Lite account can run it. The other version uses the enterprise technologies IBM Cloud Private and Cloud Foundry Enterprise Environment.

The next diagrams add more details about the three main parts.

The core game is a serverless application hosted on the IBM Cloud via Cloud Object Storage and IBM Cloud Functions. The users, scores and Twitter APIs are invoked via Lite API Management. With Lite API Management and App ID user authentication and authorization can be implemented.

diagram-serverless

The scores service has been implemented via the Cloud Foundry Node.js buildpack. A second buildpack is used to host the web resources of the web application which displays the highscore list.

diagram-scores

The users service has been implemented via Node.js running in Kubernetes. The data is stored in Apache CouchDB. Via Secure Gateway the service can be invoked from the public cloud.

diagram-users

To find out more about the different services and offerings, follow these links: