Build Data Intense Applications using Google Cloud Platform
Pooja Kelgaonkar20:402023
Design the data first, then choose from Google Cloud's crowded service menu
BigQuery can create, train and call machine learning models with plain SQL statements, and that is only one of the ways a Google Cloud data platform can be wired together. Senior data architect Pooja Kelgaonkar of Rackspace Technology, with 16-plus years in data, maps services such as Dataflow, Dataproc, Vertex AI and Dataplex onto three design pillars. Which pattern fits a warehouse, a lake or a data mesh, and how is it governed?
Get reference patterns for ETL, ELT, analytics, warehouse, lake, mesh and governance on GCP
Pooja Kelgaonkar, Senior Data Architect at Rackspace Technology, frames data-intensive application design around three pillars: the foundation of data systems, distributed data and derived data. She then walks through Google Cloud reference patterns for ETL, ELT, analytics, data warehouse, data lake and data mesh platforms, and closes with governance using Dataplex.
“So, the first one is the foundation of data system, the second one is the distributed data, and the third one is the derived data.”
“So as you all know, GCP BigQuery is one of the flagship services of a GCP where it can be integrated with any other services on the Google Cloud platform.”
What you will learn
Evaluate a data application against three pillars: foundation of data systems, distributed data and derived data.
Choose between ETL, ELT and hybrid approaches based on source variety and available integrations.
Map data warehouse, data lake and data mesh designs to GCP services such as BigQuery, Cloud Storage, Pub/Sub, Dataflow and Dataproc.
Expose curated data to consumers through BigQuery authorized views, functions or datasets without opening underlying tables.
Plan unified governance and a data catalog with Dataplex across warehouses, lakes and data marts.
Key takeaways from the speaker
This session will help audience to understand deisgn patterns to build data intense applications using Google Cloud Platform
Details
Level
Intermediate
Format
Tech talk
Technical depth
Practitioner
For
Mid-career, Senior individual contributor
Length
20:40
Published
June 2023
Questions this talk answers
What are the pillars of data-intensive application design?
The foundation of data systems (reliability, scalability, maintainability, data models, storage and retrieval), distributed data (replication, partitioning, transactions, consistency) and derived data (batch or streaming ingestion and the analytics built on it).
When should a team use ETL, ELT or a hybrid approach?
ETL transforms data before it lands, ELT loads raw data first and transforms it inside the platform, and hybrid mixes both depending on heterogeneous sources and the integrations they offer.
How can machine learning be added to a BigQuery data warehouse?
Through Vertex AI, through AutoML, or natively with BigQuery ML, where models are created with CREATE MODEL statements and invoked with simple SELECT statements.
How do consumers access data in a data mesh built on GCP?
Mainly through BigQuery authorized views, authorized functions or authorized datasets so the underlying data is not exposed; read APIs with role-based access are another, less recommended, option.
Which GCP service supports data governance?
Dataplex provides unified data management and governance controls whose policies can be applied to warehouses, data lakes and data marts, and supports a data catalog at technical and business levels.
About this talk
This session covers various aspects of data application design and implementation. This will help to pick and choose from set of Data services offered by Google Cloud covering architecting and implementing data intense applications.
Hello everyone. Good morning. Welcome to the session. Thanks for joining. So this session we are going to we are going to talk about building data intense applications with Google Cloud Platform. Before we start with the session, quickly about myself. So I'm Pooja Kalinaukar. I have 16 plus years of experience in data domain. I'm currently working as a senior data architect with Flagspace. I've recently been awarded and recognized as a Snowflake data superhero, so one of the 72 members across the globe. So in today's session, this is going to be the agenda. We are going to talk about what are the data intense application pillars. So what are the pillars that contribute to the application design and how we can use them to design and data application. What are the GCP services available? What are the data application and
analytics patterns that we can design with Google Cloud Platform? What are the various data platform designs like data warehouse, data lake, data mesh, how we can do it using GCP services? And what is the data governance design model that we can implement and what are the services from GCP can be leveraged to build a data governance design? So let's get started with the application pillars.
So, when we talk about Google Cloud, we know it's a cloud offering by Google, and when we talk about cloud adoption, so these are some of the key reasons are the opportunities because of which we moved to cloud. So, cloud has a lot of opportunities in terms of advanced analytics, future development, and the perception change from how to what to be developed, like an innovation mindset.
the main important thing let's talk about the what are the pillars of the application design so the first pillar is the foundation of data systems so there are three things that three components contribute to the foundation of a data system the reliable scalable and maintainable applications so how how your application is reliable how scalable it is and how about the maintenance whether it is a low cost or the high cost maintenance the second thing is data models and query languages so what kind of a databases are they like relational non-relational how they are queried does they support as a sql or no sql models how the storage and retrieval so what kind of data is being stored and retrieved whether they are retrieved by the consumer
integration applications or the queries and what kind of data it is whether it is a transactional data or analytical data the second important pillar is the distributed data so what kind of data distribution is there how data is being replicated is it is it replicated and designed in such a way that it is always a high available so talking about disaster recovery and disaster recovery planning the next one is the partitioning how data is being stored across the data platform and partition so that you get performance efficient access to the data systems next is a transaction so what kind of operations been run on top of your data platform are they analytical transactions are Are there transaction data where the role-level operations are being done?
How the data is being scanned? And the last and most important thing is the consistency. How consistent your data is? Whether it's a highly consistent, strong consistency implemented or do you have eventual consistency depending on the type of application you have and the type of consumers you have and the agreement between your application and your consumers, you define the consistency policies.
So last one is the derived data. So how your data is being derived and stored and processed in your platform. So once you bring in data, what kind of nature of the data it is? Whether it is being considered as a batch, whether it is being considered as a streaming, whether it's an event stream or a database streams, and what is the future of your data?
Like what kind of analytics is being done? Like considering descriptive, prescriptive, or a predictive analytics. So, given the era of a generative AI, so what kind of AI models you can build, how your data is being categorized into the AIML integrations, and what kind of predictive analytics you can build. So, these are the three important pillars of the data intense application design.
So, the first one is the foundation of data system, the second one is the distributed data, and the third one is the derived data. So these are the three important pillars using which we are going to talk about the various patterns and how we are going to design the applications. Let's talk about the approaches. So what kind of approach you can implement when we talk about the application design?
So we know the ETL, ALT, and the upgrade approaches are there. So these are the three widely used application patterns when we design any of the data applications. Whether you extract the data, transform it on the fly, and load it before it leads to the data platform. The second one is the extract, load, and transform. Whether you end up loading your data to the raw layer or the staging layer on the database first or the data platform.
And then you run a set of transformation jobs to transform your data and have it ready for the analytics to be run. And the third one is the hybrid where you end up using mix of both ETL and ELT. depending on the heterogeneous data sources you have, depending on the integrations available with the data sources and the kind of data you want to process.
The next one is the data services. I'm sure most of you are aware of GCP and data services. I may not spend much time explaining each of these services. But yes, as you know, GCP is rich in data services and there are various services available which supports the relational databases, which supports the transactional operations, which supports the NoSQL and analytical operations as well.
So there are also various categories available which are formulated and categorized into the type of storages available, type of analytics being run, type of AI ML being run, and the type of a serving model where which services can be leveraged to integrate with a consumer application so be it your mobile applications or web app based applications or any typical set of bi analytical applications where consumer can fetch data from your platform in terms of reports and the dashboards then the next one is this is another level of a categorization where we can categorize the gcp services between the various compute offerings storage offerings big data and the most importantly the machine learning or the auto ml so gcp also offer lots of auto ml services where it is just a kind of a plug and play you may not
need to have a you know ml models to be developed to use those auto ml so these are just a kind of a plug and play depending on your application requirements now let's see how these patterns can be implemented using gcp so this is a etl pattern so if you observe here data flow is the service that is being used as an ETL tool here, whereas in the various sources here are integrated and used as a part of an ETL integration and then there are a set of services can be used to storage and analyze the data. So similar to data flow, data fusion can also be used as an ETL service where you can integrate it with the heterogeneous sources, bring in the data
directly from the source or have it landed to the storage layer and read it from there and push it to the data lake or a data warehouse or the same storage layer depending on your application design and the requirements these are the two etl designs that you can implement using the data flow or a data fusion on gcp the second one is the elt patterns so how you can design the elt so elt as the name itself says we have to extract the data first and then transform so transforming leveraging the services part so here is the one of the most commonly and widely used architecture that is using big query for the elt implementation the second one the same you can do it using data
proc so this is the reference architecture for the hadoop migration use case where you design the elt pattern using data proc all your hadoop spark jobs are converted to run on the ephemeral clusters on using the cloud data proc and these are again kind of elt pattern where you extract data from the sources have it on the storage layer and then you read the data from storage process it using spark jobs and once your data has been processed you store it here on the storage or you push it to the warehouse or a big table depending on the type of consumers you have and the accessibility required. So these are the two patterns that designs that we have seen ETL and ELT. Now let's see what analytical pattern we can implement. So when I talk about data analytics,
so there are two types of analytics, right? So the predictive ones and the descriptive ones where all the dashboards and bi tools fall in place so this is the example of a predictive analytics where you can implement automated model training cycle using vertex ai where the data is being trained based on the new data coming in so as and when new data comes to the comes to the table the model gets automatically trained and deployed so that you have a continuous deployment training deployment cycle available. The next one is the Looker. So GCP Looker is the service that can be used to have descriptive analytics implemented. You can have dashboards and various reports designed and made available to the consumers. The next is the AutoML. So AutoML are the services
which are used widely if you don't want to have your customized models built using Vertex AI. You can very well use these models and some of the widely used models are the NLP, the natural language processing model or the translation models or the vision models or text to speech. So depending on the business requirements, you can use these ML services.
Now let's talk the most important part of the session is the platform designs. So what are the different platform designs that we can implement using GCP services? So the first one is the warehouse platform. So, as you know, I believe you are very well aware of the data lake, data warehouse, data mesh, and the lake house patterns.
So, this particular pattern talks about a data warehouse where you design and build a warehouse using GCP BigQuery, and there are various integrations available. So, if you see here, these are various sources available, and these sources can be integrated with a BigQuery, And the middle layer talks about the data processing layer, where data can be processed in the BigQuery, leveraging the BigQuery native power, or leveraging the data flow, data fusion, or data proc services.
So here it talks about both the patterns, ELT and ETL. Depending on the requirements, you can have the warehouse design to follow either of them or both, depending on the type of source you have and the ingestion integration requirements. And then followed up by the machine learning models. So as you all know, GCP BigQuery is one of the flagship services of a GCP where it can be integrated with any other services on the Google Cloud platform. So the same way it can be very well integrated with AutoML or a Vertex AI.
But along with these two machine learning offerings, BigQuery also have built-in native support to the BigQuery ML. So it's similar to the DML statements. So you can create a model using create statements and you can, there are specific algorithms supported as a part of a BigQuery ML. You can create the models using create model statements, have them trained and deployed on a BigQuery and you can use simple select statements to invoke those models and have the predictions run. So these are the three ways you can have the machine learning implemented in a warehouse pattern using GCP BigQuery and similar to any other consumer integrations you can have various consumer integrations available either through Looker or any of the third party platforms. Even you can integrate it with Tableau, Power BI or any of the open source
available. So, BigQuery has connectors available and you can very well connect it with a BigQuery for a consumer application design. The next pattern is the data lake pattern. So, data lake is different from the data warehouse where data lake talks about storing and maintaining your data at the storage level. So, even though you have various integrations for your batch, streaming you have your intense data processing then you still have a storage where you use to restore and you store data for your future references and maintain the historical data the same way you can do it using in the warehouse as well but the lake in the lake design if you see it here the cloud storage is used as the core of the data lake and the data lake is being implemented
using a cloud storage so uh the if you see heat here the storage is at the center and these are the various sources source level integrations there are two types of the processing available stream processing the stream can be implemented using pub sub and a data flow and a batch can be implemented using various loading jobs or the data can be directly pulled into the source to the source buckets on the cloud storage and then there are machine learning available using the vertex ai or the data prep and the auto ml available and the same goes with the uh consumer layers so this is how you can have the lake design and when we talk about data lake so even though your data is stored at the storage level you can have various data marks defined either at a big
query or a big table and the data services available so that your data is made available to the consumer integrations via big query or a big table then the next one is the data mesh design so data mesh as you all know it talks about decentralizing the data at a domain level so instead of uh putting uh in a contrary to the warehouse design where you had a data centralized so data was at your center and the the consumers were revolving around your data right so unlike to that data mesh talks about decentralizing the data at a domain level so if you see this design there are various domains here defined and these are the producers and these are the consumer layers so you can have the data segregated at the domain level and each of the domain would have its own
integrations from source to the consumers have own processing and the transformation logic and your consumers would access the data to the uh to your producer or the at a domain level so these are there are two ways you can have the consumers integrated so one is through authorized access and authorized views so here if you see the big query is being used to store all the curated data and BigQuery has a feature of authorized views. It can be defined either authorized views, authorized functions, or authorized dataset. So if you give access at authorized dataset level, your consumer would be able to access various objects present within the dataset and able to access it. Or you can do it at a view level where you define the target layer views and have the
access given as authorized views and if you see it here the consumers are nothing but the various level of consumer applications through which these data can be accessed so for example the reporting is a is a one level uh type of a consumer where data can be accessed through bi tools and as we know any of the bi or tool for example here we are talking about looker so it internally runs set of queries to fetch in the data from a big query so these authorized views can be used to build in these dashboards and data would be phased for through these authorized views so the underlying data won't be accessible to the consumer layer the same goes with any of the downstream analytical applications where any of the consumer applications running on let's say
running on data prop or data flow or any other level of a business application which treat this as a source data it can be accessed through the authorized views or the data sets then the next one is through the read api so this may not be the most recommended way to do it but this is also one of the way where you define the read apis and you give access to the users based on to the role-based policies and the access will be given to the specific users to the apis so that they can hit in your big query underlying data and process it so this can be again used at a machine learning applications or the analytical layer application the next one is the design
patterns uh the governance so this is the most important part of the application design where these five pillars of the governance can be implemented so gcp offers a service dataplates which helps to define a unified data management and a governance control so you can define the policies at a dataplex level which can be applied to the warehouses data lakes or data marts so this is the sample use case to implement a data catalog so data catalog can be implemented at a technology level and a business level so this is how you can implement a data catalog using data and data governance can be implemented using dataplix.
So this is all I had for today's session. So I'll take a pause here. There is still one more minute remaining. I'll open up for any questions. If you have, please feel free to drop in the question in chat or a Q&A box here. I'll be happy to answer them. any questions last few seconds okay thank you so much for joining in the session i can see one question so gcp as i said gcp is rich in data services and the solutions so when i talk about implementing any of the data applications gcp is uh one of the hyperscaler that i would definitely prefer to use given given the various uh support to the various types of data and the platform integration is like lick or warehouse or a data mesh
Transcribed automatically; names checked against the speaker record. Select a time to jump there.
Article based on this talk
How to choose the right Google Cloud pattern for a data-intensive application
Pooja Kelgaonkar maps three design pillars onto ETL, ELT, warehouse, lake, mesh and governance patterns built from GCP services.
In short
Pooja Kelgaonkar, Senior Data Architect at Rackspace Technology, argues that building a data-intensive application on Google Cloud starts with design, not with a service list. She frames every decision around three pillars (the foundation of data systems, distributed data and derived data) and then shows which GCP services fit ETL, ELT, analytics, data warehouse, data lake, data mesh and governance patterns.
Key takeaways
This session helps the audience understand design patterns to build data-intensive applications using Google Cloud Platform.
Three pillars before any service
Kelgaonkar, who has more than 16 years in the data domain, opens by explaining why teams move to the cloud: advanced analytics, faster development and an innovation mindset. Before naming a single product, she sets out the lenses she uses to judge a design.
The first pillar, the foundation of data systems, asks whether an application is reliable, scalable and maintainable at reasonable cost, which data models and query languages it relies on (relational or non-relational, SQL or NoSQL), and whether the data stored and retrieved is transactional or analytical. The second, distributed data, covers replication and high availability for disaster recovery, partitioning for performance, the kind of transactions run on the platform, and consistency. Here she makes a practical point: whether a system needs strong or eventual consistency depends on the application, its consumers and the agreement between them. The third pillar, derived data, looks at whether data arrives as batch, event streams or database streams, and what descriptive, prescriptive or predictive analytics, including AI and ML models, it will feed.
"So, the first one is the foundation of data system, the second one is the distributed data, and the third one is the derived data." (4:34)
Approaches and the GCP service landscape
With the pillars in place, Kelgaonkar compares three ways of moving data. ETL extracts and transforms data on the fly before it lands. ELT loads data into a raw or staging layer first and then runs transformation jobs inside the platform. A hybrid approach mixes the two, depending on how varied the sources are and what integrations they offer.
She then sketches how Google Cloud groups its offerings: by storage, analytics, AI and ML, and serving models that feed mobile, web or BI applications, and again by compute, storage, big data and machine learning, including plug-and-play AutoML services that need no custom models.
"But yes, as you know, GCP is rich in data services and there are various services available which supports the relational databases, which supports the transactional operations, which supports the NoSQL and analytical operations as well." (5:46)
For ETL she points to Dataflow and Data Fusion, which integrate heterogeneous sources and push data to a lake, a warehouse or the storage layer. For ELT she shows two reference designs: BigQuery as the transformation engine, and Dataproc for Hadoop migrations, where Hadoop and Spark jobs are converted to run on ephemeral clusters, read data from storage and write results to storage, the warehouse or Bigtable.
Analytics and the BigQuery warehouse
Kelgaonkar separates predictive and descriptive analytics. On the predictive side, Vertex AI can run an automated training cycle in which models retrain and redeploy as new data arrives. On the descriptive side, Looker delivers dashboards and reports. AutoML covers common needs such as natural language processing, translation, vision and text-to-speech when a team does not want to build custom models.
The warehouse pattern puts BigQuery at the center. Sources feed a processing layer that can use BigQuery's native power or Dataflow, Data Fusion and Dataproc, so a single warehouse can follow ETL, ELT or both.
"So as you all know, GCP BigQuery is one of the flagship services of a GCP where it can be integrated with any other services on the Google Cloud platform." (11:38)
She highlights three ways to add machine learning to the warehouse: Vertex AI, AutoML and BigQuery ML, which supports specific algorithms through SQL-like statements.
"You can create the models using create model statements, have them trained and deployed on a BigQuery and you can use simple select statements to invoke those models and have the predictions run." (12:16)
Consumers can reach the warehouse through Looker or third-party tools such as Tableau and Power BI using BigQuery connectors.
Lakes, meshes and governance
The data lake pattern moves the center of gravity to Cloud Storage. Streaming data flows through Pub/Sub and Dataflow, batch data arrives through loading jobs or lands directly in source buckets, and ML comes from Vertex AI, Dataprep and AutoML. Data marts defined in BigQuery or Bigtable then serve consumers.
"So, data lake is different from the data warehouse where data lake talks about storing and maintaining your data at the storage level." (13:12)
The data mesh reverses the centralized warehouse model. Data is decentralized by domain, and each domain owns its integrations, processing and transformation logic from source to consumer. Curated data lives in BigQuery, and consumers reach it through authorized views, authorized functions or authorized datasets, so BI tools like Looker and downstream applications on Dataproc or Dataflow never touch the underlying data directly.
"So if you give access at authorized dataset level, your consumer would be able to access various objects present within the dataset and able to access it." (15:42)
Read APIs with role-based access are another route, though Kelgaonkar notes it may not be the most recommended one. She closes with governance, which she calls the most important part of the design: Dataplex provides unified data management and governance controls whose policies apply across warehouses, lakes and data marts, and it supports a data catalog at both technical and business levels.
Watch the talk
"Build Data Intense Applications using Google Cloud Platform" by Pooja Kelgaonkar (21 minutes): https://www.womentech.net/video/build-data-intense-applications-using-google-cloud-platform
About the speaker
Pooja Kelgaonkar is a Senior Data Architect at Rackspace Technology, with strong data warehousing skills and a specialism in cloud migrations that implement DWBI solutions on cloud platforms. She specializes in designing and delivering legacy migrations to Google Cloud Platform and works in a customer-oriented, structured way focused on quality and timely delivery.
Questions this talk answers
What are the pillars of data-intensive application design?
When should a team use ETL, ELT or a hybrid approach?
How can machine learning be added to a BigQuery data warehouse?
How do consumers access data in a data mesh built on GCP?
Which GCP service supports data governance?
Drafted with AI from the talk transcript. Editor review pending.
Frameworks and ideas mentioned
ETL
ELT
Hybrid ETL/ELT
Data warehouse
Data lake
Data mesh
Lakehouse
Three pillars of data-intensive applications (foundation, distributed data, derived data)
Cite this talk
Pooja Kelgaonkar. "Build Data Intense Applications using Google Cloud Platform." WomenTech Network, 2023. https://www.womentech.net/video/build-data-intense-applications-using-google-cloud-platform