<?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 Paritosh Anand on Medium]]></title>
        <description><![CDATA[Stories by Paritosh Anand on Medium]]></description>
        <link>https://medium.com/@paritoshanand?source=rss-9428816f4183------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jBrRztWm-fUGJ2bB6n43dA.jpeg</url>
            <title>Stories by Paritosh Anand on Medium</title>
            <link>https://medium.com/@paritoshanand?source=rss-9428816f4183------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 22:57:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@paritoshanand/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[MLOps  with AWS SageMaker]]></title>
            <link>https://medium.com/fresha-data-engineering/mlops-with-aws-sagemaker-a36805c3241a?source=rss-9428816f4183------2</link>
            <guid isPermaLink="false">https://medium.com/p/a36805c3241a</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Paritosh Anand]]></dc:creator>
            <pubDate>Thu, 09 Oct 2025 08:41:38 GMT</pubDate>
            <atom:updated>2025-10-09T08:41:38.186Z</atom:updated>
            <content:encoded><![CDATA[<h3>MLOps with AWS SageMaker</h3><figure><img alt="AWS SageMaker" src="https://cdn-images-1.medium.com/max/1024/0*htvkMP5G9jVusC3X.jpg" /><figcaption>AWS SageMaker</figcaption></figure><p>As a Platform Engineer at Fresha, I’ve had the privilege of architecting and implementing our first <a href="https://ml-ops.org/">MLOps</a> pipeline. This initiative represents a significant milestone in our data science journey, transitioning from experimental ML models to production-ready, scalable, and maintainable machine learning systems.</p><p>This blog post chronicles our journey in building a production-ready MLOps pipeline, focusing on the critical components of model training, containerization, and deployment automation. We’ll explore how we transformed raw data into production-serving ML models through a streamlined, automated workflow built on <a href="https://aws.amazon.com/sagemaker/">AWS SageMaker</a>.</p><h3>ML Lifecycle automation</h3><p>Our MLOps approach eliminates the complexity of production ML deployment by automating the entire pipeline for deploying SageMaker endpoints. Letting ML Engineers focus on model development while ensuring reproducible, scalable, and maintainable production systems.</p><figure><img alt="ML Inference Endpoint deployment in SageMaker using GitHub Actions and Terraform" src="https://cdn-images-1.medium.com/max/1024/1*zg3Q2hp1BWnAo7TEGpG1RQ.png" /><figcaption>ML Inference Endpoint deployment in <strong>SageMaker</strong> using <strong>GitHub Actions</strong> and <strong>Terraform</strong></figcaption></figure><p><strong>Model Training and Inference Endpoint Deployment</strong>. Our workflow follows a clear separation of concerns:</p><p>A) <strong>Model artifacts</strong> are stored in S3 with versioning.</p><p>B) <strong>Inference</strong> code is versioned, containerised and stored in <a href="https://docs.aws.amazon.com/AmazonECR/latest/userguide/what-is-ecr.html">ECR</a>.</p><p>C) <strong>Infrastructure</strong> is managed through <a href="https://registry.terraform.io/providers/hashicorp/aws/latest">Terraform</a>.</p><p><a href="https://github.com/features/actions">GitHub Actions</a> orchestrates the entire container build and deployment process, triggering on model training completion to build Docker images with the latest inference code, push them to ECR and update SageMaker model configurations.</p><h4>Project structure</h4><p>This project structure organizes the service with dedicated directories for <a href="https://github.com/features/actions">GHA</a> workflows, Terraform Code and model inference python code creating a modular architecture for automated SageMaker endpoint deployment.</p><pre>ml-taxonomy<br>├── .github<br>│   ├── CODEOWNERS<br>│   └── workflows<br>│       └── pipeline.yaml # build &amp; push images, then deploy SageMaker endpoint<br>├── .gitignore<br>├── bin<br>│   └── build-image<br>├── bootstrap # IaC for IAM, ECR, SageMaker<br>│   ├── ecr<br>│   ├── iam<br>│   ├── sagemaker<br>│   └── terragrunt_common.hcl<br>├── images<br>│   ├── images.hcl<br>│   └── taxonomy<br>├── inference # Model inference code<br>│   ├── inference.py<br>│   ├── models<br>│   │   └── taxonomy<br>│   │       ├── README.md<br>│   │       ├── inference<br>│   │       └── taxo_requirements.txt<br>│   ├── requirements.txt<br>│   └── tests<br>└── README.md</pre><h3>SageMaker Inference Endpoint Invocation</h3><p>This cross-account AWS architecture enables secure, scalable ML inference by connecting EKS-hosted consumer applications in the Production account to SageMaker endpoints in the Data Science account through VPC endpoints and cross-account IAM permissions.</p><figure><img alt="SageMaker Inference Endpoint Invocation using cross account IAM access and VPC endpoints." src="https://cdn-images-1.medium.com/max/1024/1*6bm2HhpfMbl_cfuwQPZ_iw.png" /><figcaption>SageMaker Inference Endpoint Invocation</figcaption></figure><p><strong>Production AWS Account:</strong> EKS cluster hosts consumer applications and VPC endpoints for network access to the SageMaker endpoint.</p><p><strong>Data Science AWS Account:</strong> SageMaker Inference Endpoint serves ML models with cross-account IAM permissions.</p><p><a href="https://docs.aws.amazon.com/vpc/latest/privatelink/create-interface-endpoint.html"><strong>VPC Endpoint</strong></a><strong>:</strong> Provides secure, private connectivity between production applications and SageMaker endpoints without traversing the public internet.</p><p><strong>Cross-Account IAM:</strong> Enables fine-grained access control allowing production applications to invoke specific SageMaker endpoints while maintaining security boundaries.</p><p><strong>CloudWatch</strong> logs and metrics from SageMaker endpoints are shipped to Datadog using <a href="https://docs.datadoghq.com/integrations/amazon-sagemaker/">Datadog’s SageMaker Integration</a>. Providing centralized monitoring, alerting, and observability across our entire ML infrastructure stack.</p><p><strong>Auto Scaling:</strong> Dynamically adjusts SageMaker endpoint capacity based on invocation metrics, ensuring optimal performance and cost efficiency.</p><p><a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html"><strong>Data capture:</strong></a> automatically collects inference request and response data from SageMaker endpoints and stores it in S3, creating a continuous feedback loop for model retraining and performance monitoring.</p><figure><img alt="Number of invocation requests for the SageMaker Endpoint" src="https://cdn-images-1.medium.com/max/1024/1*waXp7m6Y2d1Sr38lRPqXXg.png" /><figcaption>Number of requests per Inference Endpoint in Datadog</figcaption></figure><h3>Backfills using SageMaker Inference Batch Transform</h3><p>Backfill is essential for enriching existing historical datasets with ML-generated insights, enabling comprehensive data analysis and ensuring all past data benefits from our latest model improvements.</p><p>Our backfill process leverages <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/batch-transform.html">SageMaker Batch Transform</a> to efficiently process large historical datasets for ML inference, enabling bulk data processing without the overhead of real-time endpoint management.</p><figure><img alt="Backfill process using AWS SageMaker’s Inference Batch Transform" src="https://cdn-images-1.medium.com/max/1024/1*HVn8_ZT-07O5N_2iEzsyrg.png" /><figcaption>Backfill process</figcaption></figure><ol><li><strong>Prepare Input Data:</strong> Consumer applications format and upload large datasets to S3 input buckets in <a href="https://jsonlines.org/">jsonl</a> format, ready for batch processing.</li><li><strong>Trigger Batch Transform:</strong> Applications initiate SageMaker Batch Transform jobs and monitor their progress through completion, ensuring reliable bulk inference execution.</li><li><strong>Consume Input Data:</strong> SageMaker Batch Transform automatically retrieves and processes the prepared input data directly from the designated S3 input bucket.</li><li><strong>Perform Inference:</strong> SageMaker executes ML inference on the entire dataset using the same model and container configuration as production endpoints.</li><li><strong>Generate Output Data:</strong> Inference results are automatically generated and stored in S3 output buckets, maintaining the same <a href="https://jsonlines.org/">jsonl</a> format for consistency.</li><li><strong>Consume Output Data:</strong> Consumer applications retrieve and process the completed inference results from S3 output buckets for downstream analysis or storage.</li></ol><h3>Key Takeaways</h3><p>Our MLOps implementation at Fresha demonstrates AWS SageMaker’s enterprise grade capabilities for machine learning workloads. The platform’s comprehensive ecosystem from Studio Lab for development to Batch Transform and Inference Endpoints provides the foundation for scalable, production-ready ML systems.</p><blockquote>The integration between GitHub Actions, Terraform, and SageMaker creates a robust automation pipeline that eliminates manual deployment overhead while ensuring consistency across environments. Cross-account architecture with VPC endpoints and IAM permissions establishes secure, scalable connectivity between production applications and ML services.</blockquote><p>This represents just the beginning of our MLOps journey. AWS SageMaker’s capabilities like built-in monitoring, auto-scaling, and <a href="https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-data-capture.html">data capture</a> provide the foundation for advanced ML operations like model drift detection, A/B testing, and automated retraining pipelines.</p><p>The platform’s comprehensive tooling has enabled us to scale ML initiatives with production grade reliability and observability.</p><p>I’d like to extend my sincere gratitude to the Fresha’s Data Science team for their collaboration and expertise throughout this MLOps journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a36805c3241a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fresha-data-engineering/mlops-with-aws-sagemaker-a36805c3241a">MLOps  with AWS SageMaker</a> was originally published in <a href="https://medium.com/fresha-data-engineering">fresha-data-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Lakehouse: Infrastructure]]></title>
            <link>https://medium.com/fresha-data-engineering/data-lakehouse-infrastructure-218d1c0776aa?source=rss-9428816f4183------2</link>
            <guid isPermaLink="false">https://medium.com/p/218d1c0776aa</guid>
            <category><![CDATA[data-lake]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[infrastructure-as-code]]></category>
            <dc:creator><![CDATA[Paritosh Anand]]></dc:creator>
            <pubDate>Fri, 19 Sep 2025 10:27:59 GMT</pubDate>
            <atom:updated>2025-09-20T07:29:08.342Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s data-driven world, organizations face the challenge of building infrastructure that can handle both real-time streaming analytics and traditional batch processing while maintaining cost efficiency and operational simplicity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WAlJJ5UwEzDrx7OQ1KquUA.png" /></figure><p>At <a href="https://www.fresha.com/"><strong>Fresha</strong></a>, we tackled this challenge by architecting a sophisticated Data Lakehouse platform on AWS, using EKS and cutting-edge technologies like <a href="https://paimon.apache.org/">Apache Paimon</a>, <a href="https://www.starrocks.io/">StarRocks</a>, <a href="https://flink.apache.org/">Apache Flink</a> &amp; more.</p><p>This article explores how we designed a multi-account AWS architecture with dedicated data engineering infrastructure, cross-account VPC peering, and advanced Kubernetes orchestration to create a unified, scalable data platform that serves as the backbone for our entire analytics ecosystem.</p><h3>Data Lakehouse: The Best of Both Worlds</h3><p>Imagine you’re building a data platform and you’re torn between two approaches: storing everything cheaply in a data lake (like dumping files in S3) or organizing everything perfectly in a data warehouse (like a well-structured database). What if you didn’t have to choose?</p><p>A Data Lakehouse solves this dilemma by combining the cost-effective storage of data lakes with the query performance and ACID transactions of data warehouses. You get to store petabytes of raw, structured or unstructured data while still running lightning-fast SQL queries and real-time analytics on the same platform.</p><blockquote>Check this article for more insights<br><a href="https://medium.com/fresha-data-engineering/how-we-accidentally-became-one-of-uks-first-starrocks-production-pioneers-7db249f10010">How We Accidentally Became One of UK’s First StarRocks Production Pioneers</a></blockquote><h3>Architecture: Core Components</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*RUMSxvqW83lrNqvGc5l_yw.png" /><figcaption>Data Lakehouse Components</figcaption></figure><p><strong>PostgreSQL</strong> Database receives all transactional data from our applications in real-time.</p><p><strong>Kafka Connect</strong> with CDC streams every database change in <strong>PostgreSQL</strong> DBs to <strong>AWS MSK</strong> using AVRO format. Schema Registry ensures data consistency by managing AVRO schemas across the entire pipeline.</p><p><strong>Apache Flink</strong> processes streaming data in real-time, applying transformations and business logic.</p><p><strong>StarRocks</strong> serves as one of our analytical database, optimized for fast OLAP queries across terabytes of data.</p><h3>The Infrastructure That Powers Our Data Lakehouse</h3><p>Building a Data Lakehouse isn’t just about choosing the right tools — it’s about architecting a platform that can scale, secure, and serve data at enterprise levels. This is the story of how we containerized our entire data platform on EKS, implemented cross-account secret management, and created a unified infrastructure that handles both real-time streaming and batch processing workloads.</p><h4>EKS Cluster: data-engineering</h4><p>We deployed our entire Data Lakehouse platform on a dedicated EKS cluster. This isn’t just any Kubernetes cluster — it’s specifically tuned for data workloads with custom node groups, storage classes, and resource limits optimized for our streaming and analytical components.</p><p>Why a separate EKS cluster? Data engineering workloads <a href="https://flink.apache.org/">Flink</a>, <a href="https://spark.apache.org/">Spark</a> &amp; <a href="https://www.starrocks.io/">StarRocks</a> are fundamentally different from our application workloads. They need higher compute resources, specialized storage classes, and extended access for experimentation. By isolating these components, we can scale independently, apply different monitoring strategies, and also maintain clear cost attribution.</p><h4>External Secrets: Cross-Account Secret Management</h4><p>Here’s where things get interesting. Our data platform needs access to secrets from multiple AWS accounts, but we don’t want to duplicate credentials or create security vulnerabilities.</p><p>We achieved that by configuring some resources in our EKS cluster to store:</p><ol><li>Database connection strings and configuration parameters from our production account</li><li>Credentials for Kafka authentication</li><li>Internal configuration and service-specific parameters</li></ol><p>The magic happens through cross-account IAM roles. Our EKS cluster can assume roles in the production account to fetch secrets, while maintaining <a href="https://docs.aws.amazon.com/wellarchitected/latest/framework/sec_permissions_least_privileges.html">the principle of least privilege</a>. That allows our applications to consume them transparently.</p><p>This approach eliminates the need to manually manage secrets across accounts while maintaining the security boundaries that enterprise environments demand.</p><h4>ALB Ingress: Unified Access to Our Data Platform</h4><p>Instead of creating separate load balancers for each service, we designed a unified approach using a single <a href="https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html">Application Load Balancer</a> called <em>data-lakehouse-alb</em>. This ALB acts as the single entry point for all our data platform services, using host-based routing to direct traffic to the appropriate backend services.</p><p>Why a single ALB? Cost optimization and operational simplicity. Managing one load balancer with multiple listener rules is far more efficient than maintaining separate ALBs for each service. Plus, it gives us a single point of control for SSL termination, access logging, and security policies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k4APXmI7Ips3u5cE4G-nwA.png" /><figcaption>Traffic Routing</figcaption></figure><p>The <em>data-lakehouse-alb</em> is configured as an internal load balancer, meaning it’s only accessible from within our VPC. This isn’t a limitation — it’s a security feature. Our data platform contains sensitive business data, so we don’t want it exposed to the public internet.</p><p>Access is controlled through two channels:</p><ul><li>VPN Users (Data Engineers) connect via our Client VPN to access management UIs</li><li>Fresha Applications connect via VPC peering to query data from StarRocks</li></ul><p><a href="https://www.starrocks.io/"><strong>StarRocks</strong></a> gets special treatment with its own Network Load Balancer (NLB) because it needs to handle high-throughput database connections from our consumer applications. These applications connect to StarRocks using the MySQL protocol, requiring TCP-level load balancing for optimal performance.</p><h4>Infrastructure as Code</h4><p><a href="https://developer.hashicorp.com/terraform"><strong>Terraform</strong></a> manages all AWS infrastructure — EKS clusters, VPC peering, ALBs, and IAM roles — with full version control and repeatability.</p><p><a href="https://argo-cd.readthedocs.io/en/stable/"><strong>ArgoCD</strong></a> handles GitOps deployments, automatically syncing Kubernetes manifests from Git repositories to our EKS cluster.</p><p><strong>Custom StarRocks Terraform Provider</strong> manages database schemas, RBAC policies, and user permissions directly from Terraform.</p><p><strong>Result:</strong> Complete infrastructure and application lifecycle managed through code, versioned in Git, and deployed automatically via CI/CD pipelines.</p><h3>Lessons Learned: Building a Modern Data Platform</h3><p>Building this Data Lakehouse platform taught us that modern data infrastructure isn’t just about choosing the right tools — it’s about creating a cohesive ecosystem that can evolve with your business needs.</p><h4>Key Takeaways:</h4><p>Challenge Existing Patterns: We didn’t just containerize existing workloads; we fundamentally reimagined how data platforms should be architected for the AI/ML era, breaking away from traditional data warehouse approaches.</p><p>Cross-Account Security is an Art: Designing seamless cross-account networking and IAM access patterns while maintaining enterprise-grade security required us to think beyond standard AWS patterns and create custom solutions that most organizations shy away from.</p><p>Multi-Account Strategy Enables Innovation: By isolating data engineering workloads, we created a sandbox for rapid experimentation with cutting-edge technologies like Apache Iceberg, StarRocks, and real-time stream processing, something impossible in a shared production environment.</p><h4>The Result:</h4><p>A robust, enterprise-grade data platform that demonstrates the power of strategic architectural thinking. By establishing a dedicated AWS account with meticulously designed cross-account networking and IAM access patterns, we’ve created a secure, scalable foundation that not only meets today’s requirements but positions us perfectly for future growth and innovation.</p><h3>Acknowledgments</h3><p>This Data Lakehouse platform wouldn’t have been possible without the incredible collaboration between our Platform Engineering and Data Engineering teams. Their shared vision, technical expertise, and relentless pursuit of excellence transformed a complex architectural challenge into a robust, scalable solution that serves as the backbone of our data infrastructure.</p><p>Special recognition goes to the team members who pushed the boundaries of what’s possible with modern cloud infrastructure and showed us that the best solutions often come from thinking beyond conventional approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_UfM4aN7aOsq7JTqtjgqDw.png" /><figcaption>Dreaming about data :)</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=218d1c0776aa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fresha-data-engineering/data-lakehouse-infrastructure-218d1c0776aa">Data Lakehouse: Infrastructure</a> was originally published in <a href="https://medium.com/fresha-data-engineering">fresha-data-engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DockerHub RateLimiting; Solving via Nexus OSS]]></title>
            <link>https://medium.com/@paritoshanand/dockerhub-ratelimiting-solving-via-nexus-oss-31939089669?source=rss-9428816f4183------2</link>
            <guid isPermaLink="false">https://medium.com/p/31939089669</guid>
            <category><![CDATA[sonatypenexus]]></category>
            <category><![CDATA[registry]]></category>
            <category><![CDATA[scale]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[ci]]></category>
            <dc:creator><![CDATA[Paritosh Anand]]></dc:creator>
            <pubDate>Sat, 04 Dec 2021 08:06:45 GMT</pubDate>
            <atom:updated>2021-12-04T08:06:45.331Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cjvr6PmgvK3A9qZH29Pkow.png" /></figure><h3>What is this about?</h3><p>Docker is continuously moving towards commercialising their services, which is in a way correct thing to do to keep the ship sailing. One such change they brought in November 2020 is to rate limit the API calls being made to Docker Hub for Docker image pulls.</p><h3>How we got impacted?</h3><p>At our organisation, we run our CI system at fairly large scale, where there are thousands of developers actively consume the central CI system for their code commits. All the repos are Docker compatible hence most of them have rely on DockerHub for official images like centos, java, node, python, etc.</p><p>So, when this rate limiting was introduced it intermittently impacted our CI system where builds started failing with exceptions from Docker Hub like below :-</p><p>ERROR: toomanyrequests: Too Many Requests.</p><p>You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limits. You must <a href="https://docs.docker.com/docker-hub/download-rate-limit/#how-do-i-authenticate-pull-requests">authenticate your pull requests</a>.</p><h3>Solution: Sonatype Nexus — Docker Registry</h3><p>In my opinion Sonatype Nexus is an amazing, must have tool in a large scale CI system. We started using Nexus for proxying Java, NodeJS and also hosting private packages too.</p><p>So it was an obvious choice to use Nexus for solving DockerHub rate limiting issue. By proxying DockerHub and reducing dependency on DockerHub.</p><blockquote>Docker Hub is the common registry used by all image creators and consumers. To reduce duplicate downloads and improve download speeds for your developers and CI servers, you should proxy Docker Hub and any other registry you use for Docker images.</blockquote><p>We create a proxy repo in Nexus for DockerHub and added a small configuration to mirror the registry in our CI servers (which are autoscaled, so it was a change in the AMI).</p><p><strong><em>How it works?</em></strong></p><p>The first time you request an image from your local registry mirror, it pulls the image from the public Docker registry and stores it in Nexus before handing it back to the CI servers. On subsequent requests, the Nexus registry mirror is able to serve the image from its own storage.</p><p><a href="https://docs.docker.com/engine/reference/commandline/dockerd/#daemon-configuration-file">/etc/docker/daemon.json</a></p><pre>{<br>  &quot;registry-mirrors&quot;: [&quot;http://nexus.domain.org:18000&quot;]<br>}</pre><p><strong>Simple and effective !</strong></p><p>For detailed information on configuration do check the official documentation of Nexus here <a href="https://help.sonatype.com/repomanager3/formats/docker-registry/proxy-repository-for-docker">https://help.sonatype.com/repomanager3/formats/docker-registry/proxy-repository-for-docker</a></p><h3>Looking for More…!!</h3><p>Pls do follow. I am planning to post more such blogs which are practical and scalable solutions around Docker, AWS, Python.</p><p>In case any help is required for setup or approach pls don’t think twice, before asking me. You can find me at Linkedin, GitHub, Email.</p><ul><li><a href="https://www.linkedin.com/in/paritosh-anand/">Paritosh Anand - Senior Principal Software Engineer - MakeMyTrip | LinkedIn</a></li><li><a href="https://github.com/Paritosh-Anand">Paritosh-Anand - Overview</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31939089669" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deployment strategies at scale using Edge at MakeMyTrip]]></title>
            <link>https://tech.makemytrip.com/deployment-strategies-at-scale-using-edge-at-makemytrip-d698a707639c?source=rss-9428816f4183------2</link>
            <guid isPermaLink="false">https://medium.com/p/d698a707639c</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[deployment-automation]]></category>
            <dc:creator><![CDATA[Paritosh Anand]]></dc:creator>
            <pubDate>Sat, 16 Dec 2017 12:53:13 GMT</pubDate>
            <atom:updated>2017-12-19T06:24:59.945Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fHhjX1edlpNwo3lsHuGuOw.png" /></figure><h4>Reliable, Robust, Rapid and Scalable approach for deployment automation</h4><p>At MakeMyTrip, deployment automation is a crucial automation step over which Engineering teams rely to ship their changes to production reliably and rapidly. For this purpose we have developed our own application deployment automation tool :- <strong>Edge</strong>.</p><p>Deployment automation at MakeMyTrip takes utmost responsibility of shipping new features and fixes to production environment reliably and as fast as possible. Edge ensures zero downtime during deployment, with maximum parallelization; Staggered mode deployment through timely “canary” checks to ensure that new changes are not degrading system, application &amp; biz KPIs.</p><p>Salient features ensuring reliability and speed:-</p><ul><li>Zero downtime staggered deployments</li><li>Canary checks for metric comparison</li><li>Auto roll-forward or roll-back based on Canary decision</li><li>Parallel deployments across data center</li><li>Application health checks</li><li>Robust and readily available reporting</li><li>Scheduled roll outs.</li></ul><h3>1. Distributed Architecture</h3><p>Edge deployment framework in itself is a distributed application which has a capability of having multiple frontend and backend services running over multiple nodes across data center.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*TK36HXsgiXJtKsxz6JzTYQ.png" /><figcaption>Architecture of Edge framework</figcaption></figure><h3>2. Limiting distractions &amp; empowering Engineers</h3><p>Different teams in Engineering use Edge for their application deployments, In total there are ~250 different projects. Hence it is necessary to have a good amount of restriction, checks and balances on team members such that it is easier to find relevant projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*RPEt5cidA5srgkQQ7HkKpw.png" /><figcaption>Widgets</figcaption></figure><p>Edge uses widgets to ease out the pain for visualizing information at different places. A consolidated widget gives a good summary to the team members regarding what all is happening within their respective projects.</p><p>The MMT Edge system has extensive reports — and end to end tracking — which comes handy in gathering deployment issues related to a project — these can be tracked via Jira tickets and Git changes that were shipped to the production.</p><p>Engineers are provided required authorization based on their team, this also helps in enforcing required restrictions to ensure correct people are authorized to take actions respective to teams &amp; projects.</p><p>Another feature of Edge is that it can take a preferred scheduled time for deployment. Roll out auto kicks off as per defined schedule.</p><h3>3. Handling large volumes of application deployments</h3><p>At MakeMyTrip, like any other eCommerce setup, we are constantly rolling out some new feature/fix to production environment. Edge is developed on the ideology of Docker and its service orientation allows Edge to be horizontally scalable.</p><p>Running multiple docker containers help in achieving high parallelization and at the same time efficient utilization of available resources. At present we support more than <strong><em>1K deployments </em></strong>per day.</p><h3>4. Deploying to heterogeneous environments</h3><p>Edge’s design is such that it can be plugged into any environment. At MakeMyTrip we do deploy web application, micro services &amp; topologies over production machines hosted in data centers and on servers hosted on MakeMyTrip internal private cloud.</p><p>All one needs to do it to write deployment strategies as per the environment and Edge is ready to deploy over it. Keeping every environment isolated from one another ensures that there are no conflicts at execution time.</p><h3>5. Grooving with Docker and Elastic Search</h3><p>Our approach of using Docker in building Edge proved to be beneficial in several ways. Any new feature in Edge can be rolled out seamlessly using CI setup at Jenkins and an in house Docker registry configured over VMWare harbor . It is straightforward to horizontally scale Edge workers or back-end services to cater high number of deployments at once.</p><p>Using Elasticsearch for storing deployment logs helps Edge to run as a distributed service. Multiple backend or front-end services can rely on the data present in Elasticsearch. In addition ELK provides interesting data and its trends over the time that are helpful in understanding and estimating deployment needs of different teams and projects.</p><p>Logging of deployment tasks is crucial for investigation and tracking of events in the deployment life cycle. Edge frontend and backend keeps all the crucial logging at Elasticsearch such that logs are available to every service running in the Edge cluster.</p><p>Some interesting data from ELK</p><ol><li>Number of deployments per team or project.</li><li>Number of successful deployments.</li><li>Average time taken to perform health checks.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JFmQwB4fRt8kIvyFgkkmPQ.png" /></figure><p><em>Edge is a framework developed by DevOps team at MakeMyTrip. Inspired, developed and maintained by </em><a href="https://medium.com/u/c52a3efc64bd"><em>Shashilpi Krishan</em></a><em> </em><a href="https://medium.com/u/14c647c19669"><em>Jaipal Deswal</em></a><em> </em><a href="https://medium.com/u/9428816f4183"><em>Paritosh Anand</em></a><em> </em><a href="https://medium.com/u/cd3ea5e43470"><em>Virender Dubey</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d698a707639c" width="1" height="1" alt=""><hr><p><a href="https://tech.makemytrip.com/deployment-strategies-at-scale-using-edge-at-makemytrip-d698a707639c">Deployment strategies at scale using Edge at MakeMyTrip</a> was originally published in <a href="https://tech.makemytrip.com/">MakeMyTrip-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploying Django Apps; Containers]]></title>
            <link>https://medium.com/@paritoshanand/deploying-django-apps-containers-8df4b6af83a1?source=rss-9428816f4183------2</link>
            <guid isPermaLink="false">https://medium.com/p/8df4b6af83a1</guid>
            <category><![CDATA[django]]></category>
            <category><![CDATA[programming-tips]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Paritosh Anand]]></dc:creator>
            <pubDate>Sat, 16 Dec 2017 11:57:35 GMT</pubDate>
            <atom:updated>2017-12-16T11:57:35.698Z</atom:updated>
            <content:encoded><![CDATA[<p>Lately I observed some weird practices that my fellow Engineers follow for developing and especially deploying their Django application in production.</p><p>I did bit of research about best practices for a Django project development life cycle &amp; below is what I feel the most reliable way to develop &amp; deploy a Django application end-to-end.</p><p>I don’t intend to define the coding practices…</p><p>Though trying to set the perspective of creating a new project &amp; shed some light to small details that we tend to miss that eventually lead to bad Engineering.</p><h4>Unit test cases in Django</h4><p>Writing test cases is a tool that developer do ignore or don’t plan ahead and hence there are repeated iterations to make sure that application functionality is working fine after every major code change.</p><p>Unit tests are important if the application’s scope is wide. Though this practice is being followed for larger application but overlooked for small or medium scale projects.</p><h4>Code style enforcement using <a href="http://flake8.pycqa.org/en/latest/">Flake8</a></h4><p>Flake8 points out the errors &amp; violations like a variable declared but never used in a class. It is very handy and helps in setting fundamental guidelines for every developer in the team.</p><h4>Creating Docker images for Django application</h4><p>Containerization has huge benefits &amp; being the torch bearer of Docker in my organization I have figured that the best possible solution to deploy Django<br> applications is to create Docker images &amp; ship them to production.</p><p>Creating a Dockerfile that define setting up python environment required by the Django application. Using this for creating Docker images is the most reliable way to ship &amp; deploy Django application in production.</p><h4>Setting Docker Registry using <a href="http://vmware.github.io/harbor/">Harbor</a></h4><p>In the process to get Docker adopted in my team, it was necessary to get an in-house docker registry which people can use to push the Docker images of the projects they were working on.</p><p>VMware’s Harbor is an enterprise grade registry server which supports LDAP based user management to Docker registry. That is Engineers can use their existing user credentials to use in-house Docker registry.</p><h4>Code review &amp; Jenkins CI for a Django project</h4><p>Code review process using conventional tools like Gerrit &amp; Jenkins offer good features to automate code verification and Docker image creation part using above mentioned strategy.</p><p><em>This is the most reliable way to develop, ship &amp; deploy applications as per my best knowledge of Django. Do share if there are any other better strategies or tools to achieve this common goal.</em></p><p><em>Originally published at </em><a href="https://dev.to/paritoshanand/deploying-django-apps-containers-4cj"><em>dev.to</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8df4b6af83a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>