There are several ways to design a cloud-based data analytics solution. Today, I will be sharing a best practice that we have implemented recently for a broadcasting / media organisation. This company wanted to benchmark their current architecture with the solution that Crystalloids proposes as a best practise, keeping their business and requirements in mind. In this article, I will share a best practice that can be used as the foundation of your data solution. In addition, it is a solution that only requires Google Cloud components.
The organisation was already loading a number of social media data sources into a Datahub in GCP to deliver insights to the publishers for analysis of customer reach of their shows and other formats and also for growth hacking purposes. They had a working solution in place, but wanted to bring their architectural setup to the next level. That is why they challenged Crystalloids to design and build a future proof solution.
They were looking for a solution that is:
Instead of loading data from a source into BigQuery and directly build reports on these BigQuery tables, the best practice is to divide this process into three steps:
1. LoadThis step only takes data from the source and writes it to BigQuery in its raw form. No transformations are made on the data, to make sure that you are looking at the same data as was received from the source. It can be useful to not only write it to BigQuery, but also to a file in Google Cloud Storage. For example, when you receive data in JSON format, this can be stored in its purest form.
2. NormaliseThis step takes the raw data and makes the transformations that are needed to be able to use the data. Make sure that:
Once the data is normalised and all entities are stored in tables, you are ready to start gathering the data that you want to use in your reports or for specific analyses. This should happen in a separate publish step. Here you also have the possibility to combine multiple entities and/or sources.
To orchestrate these steps and make sure that the next step will only be executed when the previous is finished, I can recommend to use Google Workflows. Within this workflow, each step in the solution is handled by a Cloud function.
For this case it was required to load the data from the source on a daily basis. Therefore the first step is triggered by Cloud scheduler, since it allows to trigger the process every day at the same time.
By using this setup, in each individual step, monitoring can be applied. Operational engineers can act on this to help manage the production lifecycle.
The solution has a pay-per-use pricing model, making sure there are no unnecessary costs. And since this process runs serverless, there is no configuration involved.
If you would like to learn more about this use case or if you need assistance in your data product, please contact us.
Crystalloids helps companies improve their customer experiences and build marketing technology. Founded in 2006 in the Netherlands, Crystalloids builds crystal-clear solutions that turn customer data into information and knowledge into wisdom. As a leading Google Cloud Partner, Crystalloids combines experience in software development, data science, and marketing, making them one of a kind IT company. Using the Agile approach Crystalloids ensures that use cases show immediate value to their clients and frees their time to focus on decision making and less on programming.