0.3 C
Canberra
Monday, July 6, 2026

How BigBasket makes use of the Iceberg primarily based lakehouse structure on AWS to energy lightning-fast grocery supply throughout India


Delivering recent groceries to thousands and thousands of consumers throughout India in a couple of minutes calls for a radically trendy information structure and resilient processes to assist the enterprise make quicker choices. That is what BigBasket was capable of obtain by constructing a lakehouse structure on AWS.

On this publish, we exhibit how BigBasket carried out the lakehouse structure on AWS, together with their structure choices, implementation method, and the measurable enterprise outcomes you possibly can anticipate from an analogous modernization. Whether or not you’re going through scalability challenges or planning your personal lakehouse implementation, this blueprint supplies actionable insights you possibly can adapt to your group.

About BigBasket

BigBasket (Progressive Retail Ideas Personal Restricted) is India’s largest on-line grocery store, serving thousands and thousands of consumers throughout over 60 cities. Based in 2011, the corporate affords groceries, recent produce, home items, and private care merchandise via its cell app and web site, working subscription providers (BBDaily) and fast commerce (bbnow). For BigBasket, the flexibility to ship groceries on time isn’t solely a aggressive benefit. It’s the inspiration of buyer belief, the place each minute counts.

Nevertheless, speedy enterprise development introduced vital operational challenges:

  • Incapacity to persistently meet on-time supply adherence due to excessive order volumes, prolonged journey instances, and extra, instantly impacting key metrics like on-time price (OTR)-10 minutes and OTR-15 minutes.
  • Struggling to fulfill on-time supply targets due to selecting inefficiency, excessive order volumes, and prolonged journey instances, instantly impacting key metrics like OTR-10 minutes and OTR-15 minutes.
  • Delays in inventory availability impacting vendor fill-rates, inter-distribution middle orders, and warehouse operations.
  • Inaccurate inventory forecasting for top-selling inventory preserving models (SKUs), assortment selection, occasion SKUs, retailer capability, and shopping for cycles.
  • Decrease darkish retailer productiveness throughout selecting, stacking, order processing, and items receipt notes (GRN).

Behind these enterprise challenges lay a basic expertise drawback: the present information infrastructure couldn’t hold tempo. The corporate skilled speedy retailer development, increasing 4x in a brief timeframe, which uncovered a number of limitations inside their current information structure that wanted consideration.

Understanding the technical bottlenecks

BigBasket’s preliminary structure relied closely on a single information warehouse constructed on Amazon Redshift to fulfill all reporting and dashboarding wants. Whereas this conventional method had served them properly initially, a number of essential limitations emerged:

  • Stale information: Extract, remodel, load (ETL) pipelines delivered solely day-old (D-1) information, making close to real-time evaluation unimaginable for dashboard necessities.
  • Prolonged restoration instances: Pipeline failure restoration processes took a number of hours, inflicting vital delays in information availability for enterprise customers.
  • Schema rigidity: Schema adjustments in supply databases ceaselessly triggered pipeline failures due to an absence of schema evolution help.
  • Scalability constraints: The infrastructure struggled to deal with the sudden load improve from 13,000 to over 35,000 transactions for experiences and dashboards with greater than 1,000 dataset refreshes.
  • Value implications: Rising information volumes demanded further compute sources, driving up prices.

Diagram of the scalability and cost limitations of BigBasket’s legacy Amazon Redshift data warehouse

It turned clear that the present information infrastructure wasn’t capable of meet the evolving enterprise necessities and a redesign of their information structure is required.

Why lakehouse structure?

A contemporary information lakehouse structure addresses these points with close to real-time information processing, versatile schema evolution, and scalable analytics, capabilities crucial for fast-moving commerce operations. The lakehouse method combines the flexibleness and cost-effectiveness of knowledge lakes with the efficiency and governance options of knowledge warehouses, combining the strengths of each. The design of an information lakehouse supplies interoperability throughout storage techniques for mixed analytics actions.

Answer overview

BigBasket partnered with AWS to implement a complete lakehouse structure utilizing a mix of AWS native providers and open-source applied sciences.

The next diagram exhibits an elaborated view of Bigbasket’s modernized structure on AWS.

Detailed lakehouse data flow across bronze, silver, and gold medallion layers on AWS

Information ingestion: Enabling steady replication

AWS Database Migration Service (AWS DMS) ingests information from on-line transaction processing (OLTP) databases working on Amazon Relational Database Service (Amazon RDS) into the lakehouse on AWS.

This technique constantly replicates information with minimal latency, so your analytics replicate close to real-time enterprise operations.

Storage and governance: Constructing a stable basis

The lakehouse is constructed on Amazon Easy Storage Service (Amazon S3) and Amazon Redshift, which function the centralized information lake and warehouse following a medallion structure.

The structure persists all analytical information utilizing Apache Iceberg because the open desk format. Iceberg supplies a sturdy basis for large-scale analytics with the next capabilities:

  • ACID transactions: Ensures information consistency and correctness throughout concurrent learn and write operations.
  • Time journey: Helps querying historic desk variations for auditing, troubleshooting, and restoration.
  • Schema evolution: Permits schema adjustments with out disrupting current queries or downstream pipelines.

The medallion structure constructions information throughout three logical layers throughout the lakehouse:

  • Bronze layer: Implements change information seize (CDC)-based supply replication utilizing AWS DMS. Uncooked change occasions stream into Amazon S3 as Apache Parquet recordsdata of their unique format from supply techniques, preserving the whole change historical past. The info pipeline processes and deduplicates these occasions utilizing Apache Spark on Amazon EMR to create and preserve Apache Iceberg tables that act as replicated supply tables.
  • Silver layer: Represents the conformed information mannequin, the place information is cleansed, standardized, and validated with enforced high quality checks. This layer incorporates core dimension and truth tables, modeled for analytical consistency and reuse throughout domains. Information is saved as Apache Iceberg tables on Amazon S3, making it dependable and performant for downstream analytics and transformations.
  • Gold layer: Offers business-ready information marts and broad tables optimized for reporting, dashboarding, and domain-specific use circumstances. These datasets are curated to align with enterprise metrics and key efficiency indicators (KPIs) and are served from Amazon Redshift, utilizing Iceberg-backed tables to ship quick, scalable analytics for enterprise intelligence (BI) instruments and finish customers.

This layered method maintains a transparent separation of issues throughout uncooked ingestion, analytical modeling, and enterprise consumption, whereas supporting scalability and adaptability throughout the group. AWS Lake Formation enforces fine-grained information entry controls, and the AWS Glue Information Catalog centrally manages metadata throughout Amazon S3 and Amazon Redshift, making certain constant information discovery and governance throughout the analytics ecosystem.

Information processing: Flexibility and efficiency

For information processing and transformations, BigBasket makes use of Amazon EMR with Apache Spark and dbt, orchestrated by Apache Airflow working on Amazon Elastic Kubernetes Service (Amazon EKS) because the core compute layer of the lakehouse. Apache Spark on Amazon EMR handles large-scale distributed processing, together with CDC deduplication, incremental transformations, and sophisticated information reshaping. Apache Iceberg serves because the open desk format, which supplies a number of vital capabilities.

dbt is used to outline and execute transformation logic utilizing SQL, managing the construct of knowledge fashions reminiscent of staging, intermediate, and ultimate tables on high of the uncooked information. dbt makes use of the dbt-Trino adapter to run these transformations utilizing the Trino engine, materializing the outcomes as Apache Iceberg tables in Amazon S3. This method supplies a easy, modular, and ruled solution to handle transformations whereas making the most of Iceberg’s transactional ensures.

These options are crucial for manufacturing lakehouse implementations and aid you keep away from vendor lock-in whereas sustaining enterprise reliability.

On-line analytical processing (OLAP) and analytics: Hybrid method for value optimization

The analytics layer makes use of a hybrid method you could adapt primarily based in your question patterns:

  • Amazon Redshift: For querying of energetic, ceaselessly accessed information from the Gold layer.
  • Amazon Athena: For ad-hoc queries on historic information.
  • Apache Trino: For federated queries throughout a number of information sources whereas powering dbt-driven transformations instantly on Apache Iceberg tables.

This hybrid technique optimizes prices by preserving ceaselessly accessed information in Amazon Redshift whereas querying historic information instantly from Iceberg tables in Amazon S3. Amazon Redshift information sharing helps a multi-warehouse structure for cross-team collaboration, permitting totally different groups to entry shared datasets with out information duplication.

Orchestration: Managing complicated workflows

Apache Airflow working on Amazon EKS orchestrates and schedules information pipelines throughout all the surroundings, offering visibility and management over complicated workflows. This offers you a unified view for monitoring and managing your information operations.

Machine studying integration

Amazon SageMaker AI powers machine studying workloads for predictive analytics and mannequin coaching instantly on lakehouse information, from demand forecasting to supply optimization. This tight integration means your information scientists can work with the identical ruled information that powers your analytics.

Visualization: Making insights accessible

Amazon Fast Sight supplies information visualization and enterprise intelligence reporting capabilities, making insights accessible to enterprise customers throughout the group with out requiring technical experience.

Particular focus: Clickstream information processing

BigBasket carried out a complicated dual-path structure for processing clickstream information from cell apps and internet interactions:

  • Actual-time path: Information flows via Scala stream collectors on Amazon Elastic Compute Cloud (Amazon EC2) (behind Elastic Load Balancing) to Amazon Kinesis Information Streams and Amazon OpenSearch Service for speedy insights into buyer conduct. This path is important when you must react to person actions inside seconds, for instance detecting fraud or personalizing experiences in actual time.
  • Batch path: The batch path validates information, shops it in Amazon S3, processes it via Amazon EMR, and masses it into Amazon Redshift for complete historic evaluation. This path handles information high quality checks, enrichment, and aggregation for long-term analytics.

The trade-off between these approaches is latency versus completeness. Actual-time processing provides you pace however could sacrifice some information high quality checks, whereas batch processing supplies accuracy however introduces delay. This twin method achieves each speedy operational insights and deep analytical capabilities, letting you optimize for various use circumstances.

The next diagram exhibits how the clickstream information is dealt with and successfully processed in the present day.

BigBasket’s dual-path clickstream processing architecture with real-time and batch paths on AWS

The outcomes: measurable enterprise impression

The info platform transformation achieved vital outcomes throughout a number of dimensions:

Technical enhancements

  • Close to real-time information: Achieved close to real-time information availability for dashboards inside 3–5 minutes, changing beforehand day-old information.
  • Fast failure restoration: Pipeline failure re-runs now full in minutes as an alternative of hours.
  • Complete governance: Full management over information governance with sturdy observability, lineage, information accuracy, and consistency.
  • Enhanced scalability: Efficiently dealing with over 35,000 experiences and dashboards with over 1,000 dataset refreshes.

Enterprise outcomes

  • On-time supply: Improved monitoring with real-time insights on low-performing shops.
  • Inventory availability: Diminished operational points with visibility into key bottlenecks.
  • Inventory forecasting: Improved accuracy and availability of top-selling SKUs.
  • Darkish retailer productiveness: Enhanced productiveness of warehouse executives throughout all operations.

Key takeaways: classes for contemporary information platforms

BigBasket’s journey affords worthwhile insights for organizations going through comparable challenges:

  1. Fast commerce wants fast observability. Within the fast-paced world of fast commerce, quicker decision-making instantly improves enterprise metrics. Actual-time information isn’t a luxurious. It’s a necessity.
  2. Embrace ELT for real-time wants. Shifting from conventional ETL to an extract, load, remodel (ELT) sample inside a lakehouse structure is essential to unlock close to real-time analytics capabilities.
  3. A lakehouse delivers pace and governance. Trendy lakehouse architectures don’t drive trade-offs. You may obtain each quick information availability and complete management, lineage, and accuracy.
  4. Concentrate on operational resilience. Designing for speedy failure restoration (re-runs in minutes, not hours) is important for sustaining information availability and enterprise belief, particularly in customer-facing operations.
  5. Incremental migration. You don’t must rebuild every part. Evolve your present Amazon S3 information lake or reuse your current investments in Amazon Redshift to construct the information lakehouse capabilities.

The street forward

BigBasket continues to innovate, now transferring to undertake Amazon SageMaker Unified Studio to entry all lakehouse parts in a simplified method throughout the enterprise. This subsequent evolution will additional streamline information entry and speed up insights throughout groups.

The corporate’s transformation demonstrates that with the suitable structure and AWS providers, organizations can flip information infrastructure challenges into aggressive benefits, delivering not solely higher analytics however higher buyer experiences.

As you intend your personal lakehouse implementation, use these patterns and classes discovered to speed up your journey and keep away from frequent pitfalls.


Concerning the authors

Naga Sandeep Grandhi

Naga Sandeep Grandhi

Sandeep is an engineering chief at BigBasket, driving information platform and cloud structure initiatives, together with the next-gen information lake constructed for scale, reliability, and real-time insights.

Vikram Kumar

Vikram Kumar

Vikram is a Principal Engineer at BigBasket, the place he leads the information engineering workforce. He makes a speciality of designing and scaling trendy information platforms on AWS, enabling BigBasket to course of large-scale information effectively and energy data-driven decision-making throughout the group.

Annie Mattoo

Annie Mattoo

Annie is a Sr. Analytics Specialist at AWS, bringing over 15+ years of experience in serving to prospects with their DATA & AI journeys. She has efficiently led buyer groups to seamlessly undertake AWS Information & AI providers and has labored with Fortune 500 prospects throughout the globe in her earlier roles.

Vineet Thapliyal

Vineet Thapliyal

Vineet is an Enterprise Account Supervisor at Amazon Internet Companies (AWS) in Bengaluru, India, the place he manages strategic cloud and generative AI engagements throughout a few of India’s largest conglomerates spanning power, retail, and expertise. He’s enthusiastic about serving to enterprises unlock enterprise worth via AI/ML, cloud modernization, and industry-specific innovation — from renewable power analytics to retail transformation at scale.

Anirudh Chawla

Anirudh Chawla

Anirudh is an Analytics Answer Architect at AWS. He helps group empowers companies to harness their information successfully via AWS’s analytics platform. His curiosity lies in constructing extremely obtainable distributed techniques.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles