The data explosion of the last decade has added numerous new terms to the IT lexicon for managing that data. Among them is the data lake, a scalable, low-cost, centralized data repository for storing raw data from a variety of sources. It enables users to store data as-is without structuring it first and then run different types of analytics to gain insights and guide better decision-making.
Market trends show the growing popularity of data lakes. According to Mordor Intelligence in 2019, the data lakes market value was $3.74 billion and it’s expected to reach $17.6 billion by 2025, at a CAGR of 29.9% over the forecast period 2020 - 2025.
The Challenges of Data Lakes
Unfortunately, building a data lake isn’t easy. It entails numerous manual steps, which make the process complex and time-consuming. You have to load data from diverse sources and monitor the data flows. You have to set up partitions, turn on encryption, and manage keys. Redundant data has to be deduplicated. And there’s still much more to do.
Without the right technology, architecture, data quality, and data governance, a data lake can also easily become a data swamp — an isolated pool of difficult-to-use, hard-to-understand, often inaccessible data. Fortunately, the use of modern data lake solutions and the cloud — the AWS Cloud, in particular, in our experience — greatly simplifies things.
The Case for an AWS Cloud-based Data Lake
Building a data lake in the cloud eliminates the costs and hassle of managing the necessary infrastructure required in an on-premises data center. It also lowers engineering costs through the efficiencies of using cloud-based tools. Because cloud services are flexible and offer on-demand infrastructure, it’s also easier to re-think, re-engineer, and re-architect a data lake if you have new use cases.
The AWS Cloud offers even more benefits by virtue of their broad portfolio of services that offer options for building a data lake as well as analyzing the data. That includes Amazon Simple Storage Service (Amazon S3) and Amazon Glacier for storing data in any format, securely, and at massive scale. There are data ingestion tools like Kinesis Streams, Kinesis Firehose, and Direct Connect that can be used to transfer large amounts of data to S3.
To make it easy for end users to discover the relevant data to use in their analysis, AWS Glue automatically creates a single catalog that is searchable by users. You can also take advantage of AWS artificial intelligence (AI) services such as Amazon Comprehend, Forecast, Personalize, and Rekognition to gather insights from unstructured datasets, generate accurate forecasts, create recommendation machines, and analyze images and videos stored in S3.
There’s also the option to use Amazon SageMaker to build, train, and deploy machine learning (ML) models quickly with your datasets stored in S3. Using Amazon FSx for Lustre, you can launch file systems for HPC and ML applications.
AWS Lake Formation Addresses the Trends
One of the services our team at ClearScale particularly likes is AWS Lake Formation. In addition to simplifying the data lake building process, it addresses many of the trends affecting how data lakes are built and used.
1. The need for data preparation
The amount of data generated daily is growing, with unstructured and semi-structured comprising most of it. That data is coming from an increasingly wide variety of sources, such as machine-to-machine interactions and real-time sensor data, and in a seemingly endless variety of forms.
As such, it’s often messy, inconsistent and unstandardized. Before it can be analyzed, the data has to be cleaned and transformed. Lake Formation features capabilities that facilitate the required data preparation.
For example, Lake Formation uses ML to clean and deduplicate data to improve data consistency and quality. It can reformat data for analytics tools such as Apache parquet and Optimized Row Columnar (ORC).
In addition, Lake Formation contains FindMatches, an ML transform that enables you to match records across different datasets and identify and remove duplicate records with little to no human intervention. Lake Formation also allows for creating custom transformation jobs with AWS Glue and Apache Spark to meet specific requirements.
2. Data lake automation
From data ingestion and preparation to making data ready to be queried, there are numerous manual steps involved in building a data lake. For data lakes to truly be beneficial, they’re going to need to be more efficient. Automating as many steps as possible is essential.
That’s what Lake Formation does. For example, it employs pre-defined templates that allow data to be ingested from different sources and then automates the provisioning and configuring of storage.
Lake Formation crawls the data to extract schema and metadata tags, and then automatically optimizes the partitioning of the data. From there, it transforms data into formats like Apache Parquet and ORC for easier analytics. It also automatically classifies and prepares the data using an organization’s data access policies to govern access to that data.
3. Greater cost effectiveness
In the cloud, users who want faster results with their Big data analytics can easily steer more resources to the tasks they’re executing. As performance increases, however, it becomes more difficult to keep costs down. Companies are increasingly looking for a better balance between performance benchmarks and efficiency benchmarks.
This is another area where Lake Formation can make a difference. You get the cost efficiencies associated with the cloud, as well as those generated through the use of Lake Formation. For example, Lake Formation source crawlers reduce the overhead involved in just getting data from wherever it is into your data lake.
There’s also the matter of where raw data is loaded, which could be in partitions that are too small or large. Lake Formation optimizes the partitioning of data in S3, improving performance and reducing costs. Data is organized by size, time period, and/or relevant keys, enabling fast scans and parallel, distributed reads for the most commonly used queries.
In addition, there’s no extra charge for using Lake Formation’s features. It builds on capabilities available in AWS Glue and uses the Glue Data Catalog, jobs, and crawlers. It also integrates with services like Amazon CloudTrail, AWS IAM, Amazon CloudWatch, Amazon Athena, Amazon EMR, Amazon Redshift, and others.
4. Accommodating more data and more diverse workloads
The amount of data — and the sources of it — are increasing daily. So are the uses of that data and the tools that enable them. We can expect that AI, ML, streaming analytics, and other workload types will continue expanding and changing. Data lakes have to be able to handle it all.
This is yet another area when Lake Formation shows its power. It allows for importing data from databases already in AWS, including MySQL, Postgres, SQL Server, MariaDB, and Oracle databases running in Amazon RDS or hosted in Amazon EC2. Both bulk and incremental data loading are supported.
Data can be moved from on-premises databases by connecting with Java Database Connectivity (JDBC), identifying the target sources, and providing access credentials in the console. Lake Formation reads and then loads the data into the data lake. Custom ETL jobs can also be created with AWS Glue to import data from other databases.
Semi-structured and unstructured data can also be pulled from other S3 data sources. It just requires specifying the S3 path to register the data sources and authorize access. Lake Formation can collect and organize data sets such as logs from AWS CloudTrail, AWS CloudFront, Detailed Billing Reports, and AWS Elastic Load Balancing. The data can then be loaded into the data lake with Amazon Kinesis or Amazon DynamoDB using custom jobs.
5. The balance between data governance and ease of use
Data lakes need to be easily accessible by those who need to use them. They also must be secure and well governed. The two concepts may seem incompatible, but that’s the challenge that evolving data lake architecture has to embrace.
One way Lake Formation takes this on is with user access permissions that augment AWS Identity and Access Management (IAM) policies. When someone tries to access the data using one of AWS’ services, that person’s credentials are sent to Lake Formation. Lake Formation returns temporary credentials to permit data access.
In essence, access is controlled by grant and revoke permissions that can be specified on tables and columns instead of buckets and objects. Policies granted to particular users can be viewed and altered easily and all the data access is available to audit in one easy location with Lake Formation.
Lake Formation also integrates with IAM so authenticated users and roles can be automatically mapped to data protection policies stored in the Data Catalog. The IAM integration enables the use of Microsoft Active Directory or LDAP to federate into IAM using SAML.
Third-party business applications, like Tableau and Looker, can also be connected to AWS data sources through Athena or Redshift. Data access is managed by the underlying data catalog, so regardless of the application used, data access is governed and controlled.
Data Lakes in Action
ClearScale has extensive experience in building data lakes using AWS services. You can read one of our case studies here. But every customer is different, and the services and tools we use in building data lakes is based on each customer’s specific needs.
With all the benefits offered by AWS Lake Formation, there’s a good chance it might be one of the tools we employ. You’ll find more detailed information about Lake Formation on the AWS website.
ClearScale can help you determine if a data lake is the right solution for your company — and build it to best serve your purposes.
If you’re interested in learning more, contact us.
Get in touch today to speak with a cloud expert and discuss how we can help: