<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Lendingkart on Medium]]></title>
        <description><![CDATA[Stories by Lendingkart on Medium]]></description>
        <link>https://medium.com/@lendingkart?source=rss-2e5831e93b2e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qjzzGkAT-jPl06bMMB3osg.png</url>
            <title>Stories by Lendingkart on Medium</title>
            <link>https://medium.com/@lendingkart?source=rss-2e5831e93b2e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 09:48:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@lendingkart/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Managing Metadata Landscape for Data Lakehouse @ Lendingkart — Episode 4]]></title>
            <link>https://tech.lendingkart.com/managing-metadata-landscape-for-data-lakehouse-lendingkart-episode-4-3d7ff94a82c7?source=rss-2e5831e93b2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d7ff94a82c7</guid>
            <category><![CDATA[metadata-management]]></category>
            <category><![CDATA[metadata]]></category>
            <dc:creator><![CDATA[Lendingkart]]></dc:creator>
            <pubDate>Wed, 18 Sep 2024 11:34:34 GMT</pubDate>
            <atom:updated>2024-09-19T08:03:11.482Z</atom:updated>
            <content:encoded><![CDATA[<h3>Managing Metadata Landscape for Data Lakehouse @ Lendingkart — Episode 4</h3><p>In the rapidly evolving financial technology landscape, where data drives decision-making and innovation, effective data governance becomes paramount. At Lendingkart, a leading player in the fintech space, managing and harnessing data efficiently is crucial for operational excellence and strategic growth. One of the key tools in our data governance arsenal is<a href="https://open-metadata.org/"> <strong>OpenMetadata</strong></a>, an open-source platform designed to enhance the way organizations manage and utilize their metadata.</p><p>In this blog series, we will explore how Lendingkart leverages OpenMetadata to streamline data governance, focusing on how it helps us display tables, columns, and their descriptions with tags to ensure near real-time data accuracy and accessibility.</p><h3>What is OpenMetadata?</h3><p>Let’s briefly understand what Open Metadata is. Open Metadata is an open-source project that provides a framework for managing metadata in a standardized and interoperable way. It aims to unify metadata management across different tools and platforms, offering a centralized view of your data landscape. This includes cataloging, governance, and lineage tracking, all of which are critical for maintaining data quality and compliance.</p><h3>The Challenge: Managing MetaData @ Lendingkart</h3><p>Lendingkart deals with vast amounts of data daily that changes frequently — from transaction records and customer profiles to financial metrics and loan performance indicators. Given the scale and complexity, keeping track of where data is stored, how it is structured, and its lineage is a significant challenge. Data governance at Lendingkart requires not only ensuring data quality but also making it easily accessible and understandable for stakeholders.</p><h3>Lakehouse and OpenMetadata Integration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ClZFDYuIwDQWX2t3SjE3vQ.jpeg" /></figure><ol><li>Data Ingestion: Data is sourced from various origins, including SQL databases and NoSQL databases.</li><li>ETL Processing: The data is processed and transformed using Spark ETL jobs. The processed data is then stored in an S3 data lake.</li><li>Metadata Extraction: OpenMetadata interacts with the S3 data lake via API calls to extract essential metadata, such as schema details, table structures, and other data properties.</li><li>Metadata Enrichment: A Python script is used to enrich the metadata by adding tags and descriptions. This additional information is then pushed back into OpenMetadata.</li></ol><h3>Improve Data Discovery &amp; Catalog Experience using OpenMetaData</h3><p><strong>Centralized Data Cataloging</strong></p><p>Open Metadata serves as a central repository for our data catalog. It provides a comprehensive view of our database schemas, including detailed information about tables and columns. This centralized cataloging enables us to maintain an organized and up-to-date inventory of our data assets.</p><ul><li><strong>Tables and Columns:</strong> Each table in our database is listed with its corresponding columns. This allows data users to quickly understand the structure of the data and locate the specific information they need.</li><li><strong>Descriptions and Tags:</strong> We enhance the catalog with detailed descriptions of each table and column. Tags are applied to classify data according to its purpose, sensitivity, and usage, making it easier for users to find relevant data and understand its context.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wNEUVZHUf7dP7aaS-vWzNQ.png" /></figure><p><strong>Tags in Open Metadata at Lendingkart</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-jCfSbjXlfmabn0RoHeaFA.png" /></figure><h3>Table and Column descriptions</h3><p><strong>Near Real-Time Data Access</strong></p><p>One of the standout features of Open Metadata is its support for near real-time data visibility. This means that our data catalog reflects changes to tables and columns almost as they happen. Whether it’s updates to data schemas, new data entries, or modifications, our data catalog is continuously updated to provide the most current information available.</p><ul><li><strong>Real-Time Updates:</strong> Our system ensures that data about tables and columns, including their descriptions and tags, is updated in near real-time. This feature is critical for operational efficiency, allowing users to access the latest data insights without delays.</li><li><strong>Historical Data:</strong> In addition to current data, we maintain records of data changes up to yesterday. This historical view supports auditing and traceability, which are essential for regulatory compliance and data quality assurance.</li></ul><p><strong>Enhanced Data Discoverability</strong></p><p>Users can easily search for and retrieve information about data assets based on various attributes like table names, column names, and tags. This ease of access supports better decision-making and reduces the time spent searching for data.</p><ul><li><strong>Search and Filter: </strong>Users can use advanced search and filtering options to quickly locate specific tables or columns. This functionality is particularly useful for analysts and data scientists who need to find relevant data swiftly.</li><li><strong>Contextual Information:</strong> By providing descriptions and tagging, Open Metadata ensures that users not only find the data they need but also understand its relevance and use case.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*9d_Ioz12EOl3Rty3PuOpiA.jpeg" /></figure><p><strong>Data Discovery at Lendingkart before OpenMetadata</strong></p><p>The data discovery process initially involved users using DBeaver for schema exploration and connecting with analysts and data engineers to obtain detailed schema and table information for data stored in the S3 data lake. However, this process was tedious and time-consuming due to the need for multiple interactions with different individuals to gather information. Recognizing these inefficiencies highlighted the need for a more streamlined and automated solution to simplify and expedite data discovery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*9d_Ioz12EOl3Rty3PuOpiA.jpeg" /></figure><p><strong>Data Discovery at Lendingkart post OpenMetadata enablement</strong></p><p>Users utilize OpenMetadata for data discovery, which offers streamlined access to detailed insights about tables, including tags and descriptions. This efficient approach enables users to quickly gather and understand data, significantly reducing time spent compared to traditional methods. The detailed metadata facilitates the creation of reports and in-depth analysis, enhancing decision-making and data-driven strategies.</p><p><strong>Author Bio</strong></p><p><strong>@Abhishek Kumar Sinha </strong>associated with Lendingkart’s data journey for the last 3.5 years. He loves to turn tangled data into clear, actionable insights. With a love for solving complex puzzles and making data work with his “query power” !!!. When not building the perfect data pipeline, he’d probably geeking out over the latest tech gadgets or enjoying a good sci-fi movie.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W569pHec0NOodbqroqLSOA.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d7ff94a82c7" width="1" height="1" alt=""><hr><p><a href="https://tech.lendingkart.com/managing-metadata-landscape-for-data-lakehouse-lendingkart-episode-4-3d7ff94a82c7">Managing Metadata Landscape for Data Lakehouse @ Lendingkart — Episode 4</a> was originally published in <a href="https://tech.lendingkart.com/">Lendingkart Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog Series on Data Lake Implementation Journey @ LK — Episode 3:]]></title>
            <link>https://tech.lendingkart.com/blog-series-on-data-lake-implementation-journey-lk-episode-3-bd762e3d8df3?source=rss-2e5831e93b2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd762e3d8df3</guid>
            <dc:creator><![CDATA[Lendingkart]]></dc:creator>
            <pubDate>Wed, 03 Jul 2024 07:12:11 GMT</pubDate>
            <atom:updated>2024-07-03T07:12:11.571Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blog Series on Data Lake Implementation Journey @ LK — Episode 3:</h3><p>Welcome back to our Data Lake Implementation Journey at LK! In our previous installments, we discussed how to ingest data into the data lake, focusing on continuous data flow from CDC (Change Data Capture) events. In this episode, we will explore how we performed historical backfilling. This episode also talks about how we handled data onboarding from legacy warehouses i.e Amazon RedShift &amp; other RDBMS sources which housed the transactional data into Data Lake.</p><h3>Understanding Historical Backfilling</h3><p>Historical backfilling is a routine yet crucial task in any data platform development. This process ensures that all past data is synchronized with the data lake, making it available for any query workload. It’s a vital step to guarantee that our data lake reflects a comprehensive and accurate historical record.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/530/1*HWUI6mN7nsvWoTwYI82NBA.png" /></figure><p><strong>Steps for Historical Backfilling</strong></p><p>Just like our CDC-driven continuous data ingestion pipeline discussed in Part 1, backfilling data requires a well-defined process. Here are the steps we followed to ensure a seamless historical backfill:</p><ol><li><strong>Set Up an Incremental Pipeline Driven by CDC:</strong> The first step is to establish a pipeline that can handle incremental data loads. This pipeline leverages CDC to capture changes and updates as they occur in real-time.</li><li><strong>Perform a Backfill Until a Specific Date: </strong>Before the incremental pipeline takes over, we need to perform a one-time backfill operation. This involves loading all historical data up to a specific date into the data lake. By doing this, we ensure that the data lake contains all relevant historical data prior to the activation of the CDC-driven incremental pipeline.</li></ol><p><strong>Detailed Backfilling Process</strong></p><p>To give you a more detailed view, here’s how we approached each step:</p><p><strong>Obtaining the CSV Dump:</strong></p><p>We initially obtained a CSV dump of the complete database from DevOps. This dump was stored in an S3 location and served as the input for our backfill process.</p><p><strong>Running the Spark Job:</strong></p><p>We ran a Spark job with the CSV file as input. However, we encountered significant issues: all data types were converted to Varchar, causing aggregate queries and date filters to malfunction.</p><p><strong>Challenges and Solutions</strong></p><p>After conducting a thorough investigation, we identified that the CSV format was the root cause of the data type issues. To resolve this, we explored several approaches:</p><p>Approach 1:</p><p>Use Struct and Apply Schema</p><p>Description: One possible solution was to use struct and apply schema to the data. However, creating structs for thousands of tables proved challenging, so we kept this as an alternative option.</p><p>Approach 2:</p><p>Get Parquet Dump for Backfilling</p><p>Description: Using Parquet for backfilling ensures that data types remain intact. We explored different methods to obtain Parquet files:</p><p>Using Redshift Utility — UNLOAD:</p><p>Method: Redshift’s UNLOAD utility can output query responses in Parquet format to an S3 path.</p><p>Issue: We were only able to retrieve 33% of the tables from Redshift, but we needed all available tables in the data lake.</p><p><strong>Potential Solutions:</strong></p><p>Solution 1 — Increase the size of Redshift:</p><p>This was not viable as we were deprecating Redshift.</p><p>Set up Hevo Pipeline to Redshift: This would increase event bandwidth on Hevo, thus increasing costs.</p><p>Solution 2 — Run the UNLOAD for Available Tables:</p><p>We used this option, but had to run it outside working hours to avoid impacting other queries.</p><p>Solution 3 — Using Rust Utility odbc2parquet:</p><p><strong>Description</strong>:</p><p>The Rust utility odbc2parquet converts query responses into Parquet format. This tool provided a success rate of about 95%.</p><p>Implementation: We wrote a Python wrapper around odbc2parquet to obtain Parquet files for tables and upload them to S3. This process was deployed in a Kubernetes cluster and scheduled using Kubernetes cron jobs.</p><p><strong>Outcome</strong>:</p><p>This approach maintained data type integrity, resolving our initial issues. Date filters and aggregate queries started functioning properly, and we gained confidence in the data lake.</p><p>failSafe ETL Handling</p><p>To handle any job failures, we implemented a fail-safe mechanism. In case of a failure on any given day, we took a backup from the source for the missing days and ran a delta merge job to synchronize the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*oY__U8dEVPQ4p2XRohbxOw.png" /></figure><p><strong>Summary</strong></p><p>In this episode, we discussed the process of historical backfilling and the challenges we faced with data type integrity. We proposed solutions such as using struct and schema application, and obtaining Parquet dumps for backfilling. By exploring Redshift’s UNLOAD utility and the Rust utility odbc2parquet, we successfully overcame the initial hurdles and ensured our data lake’s reliability and accuracy.</p><p>Stay tuned for the next installment, where we’ll delve into how we optimized our data lake for performance and scalability. Thank you for joining us on this journey!</p><p><strong>Additional Note : We also gave a short talk about the backfill process @ LendingKart to Rust Bangalore Meetup group </strong><a href="https://hasgeek.com/rustbangalore"><strong>https://hasgeek.com/rustbangalore</strong></a><strong>. Feel free to go through the presentation slides here</strong></p><p><strong>Presentation Slides</strong></p><p><a href="https://docs.google.com/presentation/d/1HkIZas5XUQPqcdL3dYA8AQKEDNkvbUsspzF6e2peRP0/edit#slide=id.p">https://docs.google.com/presentation/d/1HkIZas5XUQPqcdL3dYA8AQKEDNkvbUsspzF6e2peRP0/edit#slide=id.p</a></p><p><strong>Event Link — </strong><a href="https://hasgeek.com/rustbangalore/april-2024-rustacean-meetup/sub/using-odbc2parquet-for-cost-effective-data-warehou-5Lk8gEm59StiJDE5kTtWrd">https://hasgeek.com/rustbangalore/april-2024-rustacean-meetup/sub/using-odbc2parquet-for-cost-effective-data-warehou-5Lk8gEm59StiJDE5kTtWrd</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd762e3d8df3" width="1" height="1" alt=""><hr><p><a href="https://tech.lendingkart.com/blog-series-on-data-lake-implementation-journey-lk-episode-3-bd762e3d8df3">Blog Series on Data Lake Implementation Journey @ LK — Episode 3:</a> was originally published in <a href="https://tech.lendingkart.com/">Lendingkart Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog Series on Data Lake Implementation Journey @ LK — Part 2 — Implementing Data Lakehouse]]></title>
            <link>https://tech.lendingkart.com/blog-series-on-data-lake-implementation-journey-lk-part-2-implementing-data-lakehouse-237a7258d8e6?source=rss-2e5831e93b2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/237a7258d8e6</guid>
            <category><![CDATA[data-lake-design-experts]]></category>
            <category><![CDATA[data-lake-solutions]]></category>
            <category><![CDATA[data-lake]]></category>
            <dc:creator><![CDATA[Lendingkart]]></dc:creator>
            <pubDate>Tue, 23 Apr 2024 10:30:54 GMT</pubDate>
            <atom:updated>2024-04-23T10:30:54.839Z</atom:updated>
            <content:encoded><![CDATA[<h3>Blog Series on Data Lake Implementation Journey @ LK — Part 2 — Implementing Data Lakehouse</h3><p>Welcome back to our thrilling blog series where we delve deep into the world of Data Lake implementation. In our last episode, we uncovered the crucial need for a Data Lake solution, separating the powers of storage and compute for seamless scalability.</p><p>Today, we’re diving headfirst into the operational heart of data ingestion and exploring the fascinating design and architectural choices that make it all possible.</p><h4>Building the ETL Ecosystem</h4><figure><img alt="Building the ETL Ecosystem" src="https://cdn-images-1.medium.com/max/1024/1*Ll5eUwdrD9mVpYThFk5KOA.jpeg" /></figure><p>Before we leap into the nitty-gritty of data ingestion, let’s understand the two primary ways we can usher data into our Data Lake.</p><h4>Query-Based Approach and Change Events-Based Approach:</h4><figure><img alt="Query-Based Approach and Change Events-Based Approach" src="https://cdn-images-1.medium.com/max/1016/1*WRa8O4XbvinkR6bNZ2gmZA.png" /></figure><p>Due to these differences, Change Events based approach is better suited for warehousing use cases.</p><h4>Change Data Capture for data ingestion into Data Lake</h4><p>In order to effectively capture the change data events, we have these prerequisites:</p><ol><li>Tool for Capturing Change Events from source: Check!</li><li>Messaging tool to asynchronously manage CDC event propagation: Double-check!</li><li>Data Sync pipeline to consume the CDC events and update the warehouse: Triple-check!</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/0*Recb1oHCxWH8bpla" /><figcaption>Block diagram of the CDC flow into Data Lake</figcaption></figure><p><strong>Debezium — Kafka Connect</strong></p><p>For Data Lake, we need the change sets from the source DB, allowing Data Lake to store not only the current snapshot of the source DB, but also the entire history of data manipulation for audit purposes. To achieve this, we came across the tool Debezium — Kafka Connect, and chose to use it. Because it is -</p><ul><li>Easy to set up</li><li>Open Source</li><li>Simple and light-weight</li><li>Has a wide user base and community support</li></ul><p><strong>Apache Kafka</strong></p><p>Now that we’ve harnessed the CDC events using Debezium, we channel them into our Kafka cluster, which lets the Spark ETL jobs to asynchronously read these events from Kafka, and ingest the data to appropriate Data Lake tables</p><p><strong>CDC events in terms of Kafka</strong></p><p>Debezium bifurcates the CDC events as follows -</p><ul><li>Debezium connector will create a Kafka topic associated for every connector (named as the topic prefix configured in the connector), and it will push all schema changes on the tracked tables to the said topic</li><li>Debezium maintains one-to-one mapping between the Source table and the Kafka topic</li><li>Each row operation performed on a given table, will be pushed to the appropriate Kafka topic as single Kafka message</li></ul><p><strong>Data ingestion to Data Lake</strong></p><p>Now that we figured out all the dependencies, let’s discuss the actual data ingestion process to the Data Lake. e2 requirements of Data Warehouse with Data refresh at -</p><ol><li>T-1 day interval (Cold layer)</li><li>T-15 mins (Warm layer)</li></ol><p>In the above types, the former is the batch ETL requirement for Data Lake perspective, since it requires Data sync only once every day, and the latter being a continuous sync process due to the urgency of data being constantly updated on the tables.</p><p>The major parts of the Data Lake Spark ETL in our system are -</p><ol><li><strong>Change Data Events </strong>— Spark job to capture the CDC (Change Data Capture) events on to the Cloud storage. This contains data in nested JSON format, standard JSON as defined by Debezium</li><li><strong>Unnest </strong>— Spark job that reads the raw JSON from the cloud storage, and flattens the nested JSON into a Data Lake table. We call this process as ‘Unnesting’</li><li><strong>Base Layer </strong>— Spark job that reads the Unnest tables, and updates the latest snapshot of the actual Data Lake table</li></ol><p>As these three processes are pivotal to the Data Lake ingestion, we will collectively call the pipeline as CUB pipeline (CDC, Unnest and Base layer), and will be referring to the pipeline in the subsequent parts of the blog series.</p><p>With this basic framework in hand, we have developed two parallel pipelines based on the data refresh interval for data ingestion.</p><p><strong>Data ingestion pipelines for the family of tables with an SLA of T-1 day (Cold layer)</strong></p><p>Many reporting use cases require data only as on the previous day. To address this requirement, we have set up a batch ETL.</p><p><strong>Data ingestion pipelines for the family of tables with an SLA of T-15 mins (Warm layer)</strong></p><ul><li>Spark Streaming pipeline for ingestion into warm layer</li><li>Delta Merge</li><li>Fasten delta merge with collecting distinct partition keys</li></ul><p><strong>In Conclusion</strong></p><p>This leg of our blog series covers the need for a Data Lake solution, including ETL ecosystem and data ingestion approaches.</p><ul><li>Two ways to ingest data into the data lake: query based approach and change events based approach</li><li>Change Events based approach is better suited for warehousing use case due to its auditability and low load on data source Debezium — Kafka Connect is used for capturing CDC events from source DB in an easy, open-source manner</li><li>CDC events are pushed to Kafka cluster, allowing Spark ETL jobs to asynchronously read and ingest the data into appropriate Data Lake tables</li><li>The Data Lake Spark ETL involves processes such as capturing CDC events, unnesting nested JSON format, and updating the latest snapshot of Data Lake table</li></ul><p>Stay tuned for the next thrilling installment, where we’ll unlock the true potential of our Data Lake journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=237a7258d8e6" width="1" height="1" alt=""><hr><p><a href="https://tech.lendingkart.com/blog-series-on-data-lake-implementation-journey-lk-part-2-implementing-data-lakehouse-237a7258d8e6">Blog Series on Data Lake Implementation Journey @ LK — Part 2 — Implementing Data Lakehouse</a> was originally published in <a href="https://tech.lendingkart.com/">Lendingkart Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blog Series on Data Lake Implementation Journey @ LK — Episode 1:]]></title>
            <link>https://tech.lendingkart.com/blog-series-on-data-lake-implementation-journey-lk-episode-1-c0b5fa8a8219?source=rss-2e5831e93b2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0b5fa8a8219</guid>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[data-lake-solutions]]></category>
            <category><![CDATA[data-lake-design-experts]]></category>
            <dc:creator><![CDATA[Lendingkart]]></dc:creator>
            <pubDate>Wed, 13 Mar 2024 09:17:23 GMT</pubDate>
            <atom:updated>2024-03-14T11:35:44.684Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Blog Series on Data Lake Implementation Journey @ LK — Episode 1:</strong></h3><p>Greetings, fellow data enthusiasts!</p><p>Welcome to the first installment of our blog series — chronicling the exciting expedition of implementing a Data Lake at Lendingkart.</p><p>We will be delving into the pivotal need for a Data Lake solution and the tumultuous challenges we faced along the way.</p><h3><strong>A. Introduction</strong></h3><p>At Lendingkart, the Data Engineering (DE) Team serves as the cornerstone for all Business Intelligence (BI) and Analytics endeavors, navigating through the conventional data challenges. Here’s a glimpse into what issues we were facing:</p><ol><li><strong>Scattered data source</strong>s -Data being stored across multiple databases, documents, &amp; third-party applications, compiling all of it together became a very time-consuming task, necessitating a diverse skill set.</li><li><strong>Data Quality</strong> — The variability in schemas and data origins leading to compromised data quality, with extensive time invested in rectifying discrepancies.</li><li><strong>Complex Business Logics</strong> — At Lendingkart, the ever-evolving nature of business logics, demand a keen understanding of products for effective business and management reporting.</li></ol><p>Here’s our <strong>exiting architecture</strong> based on 3rd party SAAS (TPS) pipeline and Redshift</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j0hMY3XNNKYaCJnl3wixAw.png" /></figure><p>Amidst the <strong>challenges</strong> that we were facing, our <strong>existing architecture</strong> revealed its Achilles’ heel.</p><p><strong>Inflexibility in Storage and Compute Scalability independently</strong></p><ul><li><strong>Why Independent Scaling Matters:</strong></li></ul><ol><li>Onboarding new tables amidst our increasing data volume necessitated scaling storage. However, in Redshift, this involved a meticulous assessment of available space.</li></ol><p>2. If space sufficed, onboarding proceeded; otherwise, additional space was added by horizontally augmenting a node. Notably, this augmentation could only occur over weekends due to the operational sensitivity during weekdays, elongating the Time-to-Onboard (TAT) to 2–8 days.</p><ul><li><strong>Limitations for Large Tables:</strong> Tables of substantial size (such as Narad Tables, webengage tables) remained impractical for migration to the Data Warehouse, given their scale and associated costs.</li><li><strong>Productivity Impediments:</strong> With the diversification of business verticals, the user base expanded correspondingly. However, the inability to scale computing hampered query performance, resulting in frequent timeouts and productivity setbacks. We tried to solve this using the WL management available in Redshift but were unable to eradicate this problem completely.</li></ul><h4>Constraint on Business Critical Tables Materialization during Working Hours</h4><p>The DE Team’s provision of providing derived tables for critical business logics necessitated complex join queries, demanding substantial computational resources. However, executing these processes during daytime was infeasible due to resource constraints, leading to delayed data accessibility.</p><h4>Data privacy Concern</h4><p>With the TPS pipeline, privacy concerns were posed as data was flowing outside the Lendingkart ecosystem and then coming back. Additionally, IP whitelisting for the TPS pipeline was imperative.</p><h4>Challenges in Issue Resolution</h4><p>Dependency on third-party tools for data propagation introduced challenges in issue resolution and observability, with limited insights into tool functionalities and prolonged (read: weeks) issue resolution timelines.</p><h3>High-Level Architecture of the Data Lake</h3><p>Facing these limitations, we were in need of solutions that were based on an in-house pipeline. Our Proof of Concept (POC) journey led us to Delta Lake and a Scala-Spark-based pipeline, augmented by Trino as the query aggregator.</p><figure><img alt="High-Level Architecture of the Data Lake" src="https://cdn-images-1.medium.com/max/809/1*mUK6bPNMAZjzqTDaSuskWw.png" /></figure><h4>Delta Lake</h4><p>Delta Lake enables ACID (atomicity, consistency, isolation, durability) transactions for Big Data workloads on Object Storage (S3).</p><p><strong>Advantages</strong></p><ul><li>Open-source Apache parquet format and fully compatible with Apache Spark.</li><li>Time travel — audibility</li><li>Schema enforcement to ensure Data Quality</li></ul><figure><img alt="Delta Lake" src="https://cdn-images-1.medium.com/max/1024/1*dUEymNv9jGCSOzGsCIkinQ.png" /></figure><h4>In-house Pipeline</h4><p>To address concerns related to data privacy and issue resolution TAT, we came up with an event-based “in-house“ pipeline orchestrated in Spark-Scala. Advantages:</p><ul><li>Secure pipeline as data will never travel outside of LK.</li><li>Faster onboarding of tables as time-related to whitelisting and others is reduced.</li><li>Since we own the code, we can have observability.</li></ul><h4>Query Aggregator Trino</h4><p>What is Trino — Fast distributed SQL query engine? Trino is an ANSI SQL-compliant query engine.</p><p><strong>Advantages:</strong></p><ul><li>Scale -we can add as many nodes as required to its cluster. Multi-tenancy</li><li>Query federation — Access data from multiple systems within a single query</li></ul><p><strong>Conclusion</strong></p><p>In this installment of our blog series, we shed light on the challenges encountered by Lendingkart’s DE Team, navigating through fragmented data sources and intricate business dynamics. To overcome these challenges, we transitioned to a Data Lake paradigm, underpinned by a revamped tech stack.</p><p>Stay tuned for our next Installment, where we get into the details of Data Lake implementation!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0b5fa8a8219" width="1" height="1" alt=""><hr><p><a href="https://tech.lendingkart.com/blog-series-on-data-lake-implementation-journey-lk-episode-1-c0b5fa8a8219">Blog Series on Data Lake Implementation Journey @ LK — Episode 1:</a> was originally published in <a href="https://tech.lendingkart.com/">Lendingkart Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Solving for service discovery and standardization @ Lendingkart]]></title>
            <link>https://tech.lendingkart.com/solving-for-service-discovery-and-standardization-lendingkart-3414bc499013?source=rss-2e5831e93b2e------2</link>
            <guid isPermaLink="false">https://medium.com/p/3414bc499013</guid>
            <category><![CDATA[backstage]]></category>
            <category><![CDATA[developer-tools]]></category>
            <category><![CDATA[software-catalog]]></category>
            <category><![CDATA[developer-productivity]]></category>
            <dc:creator><![CDATA[Lendingkart]]></dc:creator>
            <pubDate>Fri, 04 Nov 2022 13:22:47 GMT</pubDate>
            <atom:updated>2022-11-04T13:22:47.904Z</atom:updated>
            <content:encoded><![CDATA[<p>By <a href="https://in.linkedin.com/in/aayushskumar">Aayush Kumar Gupta</a>, <a href="https://in.linkedin.com/in/rajpoot-dinesh">Dinesh Rajpoot</a> and <a href="https://in.linkedin.com/in/natesh-gn-3b7353129">Natesh GN</a></p><blockquote>This post is the first of a two-part series on how we have solved service discovery, standard templatization and tracking tech initiatives at <a href="https://www.lendingkart.com/">Lendingkart</a>. In this part, we will discuss use cases we are supporting by Backstage. Part two will be focused more on the implementation of a custom plugin(Tech insights) we have built to track initiatives i.e mandates &amp; migrations.</blockquote><h3>Background</h3><p>Lendingkart adopted micro-service architecture to promote agility of software development by developing, testing and shipping code independently. At Lendingkart, we are running dozens of services in production. With increasing scale and size, we had started to feel the challenges around identification of all the services &amp; their owners, discovery of tech and API documentations etc. These challenges were not only adding friction but also affecting developer productivity.</p><p>Other challenges include standardization of frameworks(e.g spring boot, react/angular etc), enforcement of best practices (e.g documentation, observability integration etc) and tracking programs like migration to new frameworks manually via spreadsheets 😦 to name a few.</p><p>While exploring options, we came across <a href="https://backstage.io/">Backstage</a> by Spotify, a developer tool which was meeting most of our requirements.</p><h3>Use cases @ Lendingkart</h3><h4>1. Software Catalog</h4><p>Software catalog is a centralized system that keeps track of ownership and metadata for all softwares in the ecosystem like service, library, websites, configurations etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1vVeS3lbzSOl-YFQY3KU1A.png" /></figure><p>The catalog has improved the on-boarding experience of new employees by giving them visibility of services owned by various teams and their downstream dependencies. API and tech documentations are also available in the service dashboard.</p><p>No more surprises of having an orphaned service and enforcing ownership helped us in planning knowledge transfer sessions during off-boardings. Additionally, running an adoption project is no longer a nightmare as we used to spend the majority of time figuring out who owns what 😈</p><h4>2. Software Templates</h4><p>A template is a form or pattern used as a guide to make something. Using templates we can create something quickly and efficiently, from a pattern or Standard Operating Procedure (SOP) that has successfully been in the past. It can save time so that you won’t need to create from scratch whenever you are creating something new. It also ensures that our final product is consistent and of high quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lKfyEBE6JusFkVhwDXUaDw.png" /><figcaption>software standard templates</figcaption></figure><p>The software template part of backstage is a tool that helps us create components inside backstage. It has the ability to load a skeleton of codes and publish the template to some locations like Github or Gitlab.</p><p>At Lendingkart, we use software templates to create a skeleton for <em>spring boot </em>and<em> angular</em> projects. By integrating software templates into Lendingkart backstage platform, we have not only enforced the best practices but also reduced developer time spent in adopting them for new projects from ~ 20 hours to 15 mins.</p><p>It also has helped in standardizing the configurations like DB connection pool i.e Hikari, logback, structure of modules etc. across the repositories. Once this code skeleton is generated and published to a remote repository, they are automatically registered to a catalog where we can track metadata about these repositories.</p><p>Below are the some of the best practices &amp; standards we follow.</p><ul><li>Containerization</li><li>Documentation</li><li>Observability</li><li>CI/CD</li><li>Liveness and Readiness probes for k8s deployments</li><li>Backstage integration with owner information</li><li>Standard dependency versions</li></ul><h4>3. Tracking Mandates and Migrations</h4><p>Mandates are the standards adopted by the tech team to modernize the stack and keep it uniform. Few mandates chosen at Lendingkart include Containerization, Sonarqube quality gate and API testing.</p><p>At Lendingkart, we keep improving the standard of our services and thus need a robust mechanism to track the adoption of the same. Similar mechanism is required to track framework migrations also.</p><p>Traditionally, we have been tracking such projects via spreadsheets which is a tedious manual process and not reliable at the same time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6nLbHb8gnWtIulg7MC4NFg.png" /><figcaption>tracking mandates and migrations</figcaption></figure><p>We have solved the above challenge by building a backstage plugin to automatically fetch the information via git APIs. Git as a source of truth makes the information reliable and APIs makes it efficient, reducing the need for humans to update information on a regular basis.</p><h3>About Backstage Spotify</h3><p>Backstage<strong> </strong>is an open platform for building developer portals developed by the Spotify Engineering team and donated to CNCF. It can be used to serve many use cases like service catalog, creating new services via templates, centralized platform to keep tech and API documentations, monitoring code quality and deployment giving an overall 360° view of a service.</p><p>Backstage can be highly customized using configuration and <a href="https://backstage.spotify.com/plugins">plugins</a>. There are a bunch of community developed plugins also readily available.</p><h3>Summary</h3><p>Backstage as a developer tool has made the discovery of the services &amp; their metadata efficient and improved the on-boarding experience of new joiners in the team.</p><p>We eventually would like to make backstage a centralized platform to provide a 360° view of a service including metadata, quality, deployment and monitoring to name a few.</p><p>Come join us on the mission to simplify MSME finance. <a href="https://www.lendingkart.com/careers/">https://www.lendingkart.com/careers/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3414bc499013" width="1" height="1" alt=""><hr><p><a href="https://tech.lendingkart.com/solving-for-service-discovery-and-standardization-lendingkart-3414bc499013">Solving for service discovery and standardization @ Lendingkart</a> was originally published in <a href="https://tech.lendingkart.com/">Lendingkart Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>