<?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 Kushan Shah on Medium]]></title>
        <description><![CDATA[Stories by Kushan Shah on Medium]]></description>
        <link>https://medium.com/@shahkushan1?source=rss-549a3363d40a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Ee2d76f2LwW9rARdrulRaw.png</url>
            <title>Stories by Kushan Shah on Medium</title>
            <link>https://medium.com/@shahkushan1?source=rss-549a3363d40a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 02:15:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shahkushan1/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[What is it like being an Engineer at Fynd]]></title>
            <link>https://medium.com/fynd-team/what-is-it-like-being-an-engineer-at-fynd-4a54cd3c8a46?source=rss-549a3363d40a------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a54cd3c8a46</guid>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[india]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[culture]]></category>
            <dc:creator><![CDATA[Kushan Shah]]></dc:creator>
            <pubDate>Sun, 21 Apr 2019 10:38:50 GMT</pubDate>
            <atom:updated>2019-04-26T09:47:36.240Z</atom:updated>
            <content:encoded><![CDATA[<h4>My journey from Engineer to Principal Architect</h4><p>In February 2015, while I was looking to make a move to a full time engineering role and utilise my Python skills better, I was serendipitously introduced to a startup called Shopsense by <a href="https://www.linkedin.com/in/ankur-c-1924b220/">Ankur Chandra</a>. A few interviews later, I found myself in the company of a small team in an office at Andheri, Mumbai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*f5LCdn7lACPsTk3BDir52A.jpeg" /><figcaption>2015. Our team during a monthly State of the Firm meeting at our first office</figcaption></figure><p>For someone who had never worked in a startup before, I was surely making a big bet in joining one. The team however, was taking an even larger bet on someone who didn’t quite know everything required to build and scale their retail platform. Ankur, who referred me and also a few others later earned an award for being the HR of the year. He still works here, so do a majority of the engineering team who have been with us since &gt;2 years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/605/1*Upu3Gl0a6HBgAPusvYIcgg.png" /><figcaption>Half of our engineering team has a tenure of &gt;2 years</figcaption></figure><p>After recently completing 4 years at Fynd (which is a lot at startups), I started reflecting on what it is that made me stick here each of the past 1500 days. In these 1500 days, we have evolved our business model, grew the initial team to 140+ members, launched multiple new products all of which have scaled in the market. All of this happened while keeping our core culture and values intact.</p><p>What aspects of our Engineering culture have led me to being here since 4 years? Read on.</p><h3>Sink or swim</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*FzQQe6BOF_EuSwJHR0-8Uw.jpeg" /></figure><p>In my first week itself, I was put at the forefront of problems by being asked to debug a <a href="http://lucene.apache.org/solr/">Solr</a> indexing issue for one of our enterprise customers. I absolutely had no knowledge of Solr at that time but determined to solve the issue, I kept on digging and eventually could solve it. Fast forward a few months, when AWS launched its Mumbai Region I was asked to migrate all our services to this region with minimal downtime. Fast forward a few more months, I worked on automating our Infra from scratch to support Auto Scaling Groups and thereby improve our platform’s <a href="https://blog.gofynd.com/how-we-rebuilt-fynds-infrastructure-3238ec757281">reliability</a>.</p><blockquote><em>Our culture repeatedly puts people in front of large business problems at a time when they’re least equipped to solve it.</em></blockquote><p>Across all my experiences, I have seen everyone rise to the occasion and emerging out victorious with a big boost to their self-confidence.</p><h3>Autonomy</h3><p>While executing on large problems, YOU are completely in-charge of them and have the complete freedom to operate independently. This autonomy allows you as a builder to explore multiple solutions, consult the wider team and double down on the most effective one. Taking on bigger and bigger problems allows you unparalleled growth as an IC that would otherwise not have been possible.<br> <br>In my early months, I was asked to design and build an Order Management System from scratch to support order fulfilment from retail stores. At that time, I closely observed how the Operations team worked to fulfil orders, and came up with a plan to automate parts of their workflow. This went through a team review and we built it over a few weeks while getting feedback from the users. There was absolutely no approval from superiors/peers required. This autonomy has led to increased agility which has become one of the hallmarks of our culture and has allowed us to move fast.</p><h3>Ambitious Vision</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yXCQ62KmL40ROvZryvTKGQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Fyqcb1SFODSzTlLHncLog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FtzHuNnyK5AK5kAMbjfU0Q.png" /></figure><p>Our <a href="https://docs.google.com/presentation/d/1BBQ1CreP_GUlusIWwmZC0AYwGRs7fJ6N4bv3ioJpaNM/edit#slide=id.g2499a7d29c_0_0">vision</a> is to build a New Retail platform that organises online, offline, logistics and data across a single value chain. To add some perspective (of what user-base we are building for) the number of online shoppers in India is 100M, whereas online shopping only forms ~15% of the overall shopping. We are building product suites to reach these 100M customers and another 600M customers as well who will be shopping online by 2025. Our 5 products across multiple audiences in the B2B and B2C domain are helping us reach them. Our current user base of 20M indicates that our growth has just started and we have a long way to go. We are committed to redefining not just e-commerce but how retail operates in general. With this vision in front of us, the opportunity to make an impact is profound.</p><h3>Team</h3><p>Our team comprises of a very hard-working bunch of individuals who raise the bar of people around them. They are well grounded, keep each other accountable and support everyone. The bar for teamwork is set by our co-founders who are also instrumental in keeping our core values intact. One of our core values says “No Politics, No bullshit” and this is actually true. I haven’t seen any instances of this anytime in my tenure so far.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Fj4jT_7yfiC7ERWYqSdRJA.jpeg" /></figure><h3>Technical Stack</h3><p>We have 40+ services so far and we are in the process of adding a few more by splitting out older services as well as adding new ones for newer platform features. These services use diverse but mature technologies and we avoid using shiny objects which increase our operational overhead. Our stack comprises of these components -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*BpmkcMoQw7By_bEZHzhhzg.png" /></figure><p>A stack such as this gives ample exposure to newer toolchains as well as the freedom to go deep into areas of interest. A large chunk of our Engineering team is comfortable with multiple languages and contributes end to end to our products.</p><h3>Career Growth</h3><p>In the early phases when we were building out the initial versions of the Fynd Apps and the platform we had specialist teams devoted to Backend, Frontend &amp; Mobile since the early engineers were hired based on these skill-sets. As time passed, we realised this structure didn’t allow us to move as fast as we could. These teams were then restructured into generalist teams, (we call them Domains) each of which mapped to one or more areas of our business. Farooq, our co-founder talks more about our Engineering re-org <a href="https://blog.gofynd.com/reorganising-fynd-to-build-the-next-wave-of-products-and-features-f5003ac6332b">here</a>. We have had engineers transition from Android to Platform, Android to ML, iOS to Infra, Web to Platform and so on. What’s surprising about these transitions is that these engineers still thrive on both stacks and help us build better products. These are your quintessential T shaped engineers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1sDSIAf9DwwlTu59mwgjfg.png" /></figure><h3>10x Management Practices</h3><p>We’ve borrowed a great deal of practices from established companies that have allowed us to operate well as a team. We use the <a href="https://en.wikipedia.org/wiki/OKR">OKR</a> (Objectives &amp; Key Results) approach to chalk out quarterly focus areas and goals for each of our teams. What’s best in this approach is that, not all of these goals cascade from the top. Teams are free to set their own Key Results which can move the needle on our metrics. We have also ditched the six month review routine in favour of a continuous feedback process. 1–1s are held monthly for everyone which allows feedback to flow more frequently leading to continuous improvement. Teams also review their managers using an <a href="https://rework.withgoogle.com/guides/managers-give-feedback-to-managers/steps/try-googles-manager-feedback-survey/">Upward feedback</a> mechanism which happens twice a year.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m87-DMxwddK2o6teYiEG1w.jpeg" /></figure><h3>Work hard and celebrate</h3><p>Once a year we pack our bags and head off to a new destination as a team. Our <a href="https://blog.gofynd.com/our-workcation-at-fynd-d56442f96a31">workcations</a> have taken us to Kuala lumpur, Phuket, Singapore, Bangkok, Gokarna and Goa so far. We use this time to reflect, learn, and bond away from the usual settings. This is in addition to the frequent team dinners, sports events and annual off-site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tKAjU9yigFp2VwhHsy0XTg.jpeg" /><figcaption>Our team enjoying a workcation day at Kuala lumpur</figcaption></figure><p>There are a lot of other aspects of our culture that we are collectively improving. Here’s a few -</p><ul><li>We have technical debt accumulated and are religiously working our way towards decreasing it</li><li>We are constantly scaling our processes to accommodate our growth as a team. What got us here won’t get us where we want to go next.</li><li>We have let our users down during our flash sales last year and are improving our platform to be scale resilient</li><li>In terms of our hiring efforts, we are working hard to improve gender diversity within the Engineering team</li></ul><p>Most parts of our culture that I described above weren’t designed up front. We evolved via lots of experimentation and are still evolving as we scale.</p><p><em>We are currently hiring for all Engineering roles. If you would feel at home with our culture apply </em><a href="http://www.fynd.jobs/"><em>here</em></a><em> to work with us!</em></p><p>(Thanks to <a href="https://medium.com/u/28e1453bac1a">Farooq Adam</a> and <a href="https://medium.com/u/643727231181">Puneet Sachdev</a> for reading a draft of this post)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a54cd3c8a46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fynd-team/what-is-it-like-being-an-engineer-at-fynd-4a54cd3c8a46">What is it like being an Engineer at Fynd</a> was originally published in <a href="https://medium.com/fynd-team">Building Fynd</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How we rebuilt Fynd’s Infrastructure]]></title>
            <link>https://medium.com/fynd-team/how-we-rebuilt-fynds-infrastructure-3238ec757281?source=rss-549a3363d40a------2</link>
            <guid isPermaLink="false">https://medium.com/p/3238ec757281</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Kushan Shah]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 14:26:53 GMT</pubDate>
            <atom:updated>2017-12-06T11:10:04.413Z</atom:updated>
            <content:encoded><![CDATA[<p>On 16th October 2017, as our Infrastructure Team met for a post mortem following the 3rd edition of our flash sale <strong><em>Gone in 60</em>,</strong> the mood in the room was quite upbeat. This was in stark contrast to our previous post mortems during which we discussed why and how the platform broke when we got a higher than expected surge in traffic. Both the previous two editions of this sale had resulted in platform wide outages while we scrambled to keep the platform up in the face of rising traffic. This sale brought in a <strong>13x</strong> traffic surge compared to a normal weekday and <strong>5x</strong> the traffic of our previous flash sales. We had been preparing for this event since some time. We had migrated our core services to their own Auto Scaling Groups, fixed performance bottlenecks on our cart related API endpoints and updated our caching layer configurations to consume less memory. This helped us achieve a consistent response time while the traffic scaled 6x in less than an hour. Here’s a graph showing the traffic ramp up and ramp down around the 7:37 PM mark on one of our busiest services on the day of the sale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eek0Jzchw_u4N_0g8HJ3ug.png" /></figure><p>This blog post describes how we rebuilt our infrastructure from scratch to support this scale. Before I describe the actual process, I would be remiss if I didn’t share context on the previous version of our infrastructure.</p><h4>Infrastructure History</h4><p>In <a href="https://www.gofynd.com/">Fynd</a>’s early days our production infrastructure on AWS was pretty much hacked together. We created EC2 instances using the AWS Management Console, had no reusable AMIs and there was no configuration management tool used to setup and deploy our services. We also made the irreversible mistake of not subnetting our VPC correctly which proved costly as we added more services to the environment. All our EC2 instances were placed in a single subnet which made Security Group management very painful to scale.</p><p>As the business started <a href="https://blog.gofynd.com/tagged/growth">taking off</a>, we grew the size of the engineering team and the complexity of our architecture. But the way our infrastructure was laid out prevented us from scaling seamlessly in line with our growth on the business side. In addition to the outages that I mentioned earlier, the developer experience of building on our platform was not that great either. There were very few engineers who had arcane knowledge of how our production environment was laid out and its gotchas. In the absence of automation, they had to manage their deployments manually following a playbook. This friction took their focus away from building products. We had been improving the infrastructure incrementally, but we needed to give it a deeper overhaul to keep moving quickly in the longer term.<br><br>So a few months back we sat down and asked ourselves the question -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*V4T-cBLTY255EufJs7ekMA.jpeg" /></figure><p>Over the course of next few months, we completely re-worked our infrastructure. We retired nearly every single instance and old config, moved our user facing services to run under Auto Scaling, and switched over all services to a new VPC. We spent a lot of time thinking about how we could make a production setup that’s auditable, simple, and easy to use–while still allowing for the flexibility to scale and grow.</p><p>Here’s how we did it.</p><p>The building blocks of our Infrastructure pipeline are <a href="https://www.ansible.com/">Ansible</a>, <a href="https://www.packer.io/">Packer</a>, <a href="https://jenkins.io/">Jenkins</a> and <a href="https://www.terraform.io/">Terraform</a> along with custom tooling to glue these components. Each section below describes how we used these tools to achieve our goals. Here’s a high level overview of the pipeline -</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jnRXV5FMHIpZ8MzWI8VOXw.png" /></figure><h4><strong>Configuration Management</strong></h4><p>We chose Ansible as our configuration management tool. It’s written in Python and since a majority of our platform services are written in Python, it became easy for us to peek under the hood of Ansible and debug it. The learning curve is pretty small and we were up and running quickly without requiring any dedicated configuration management setup. Moreover, all our services have a large overlap in their stack so it was easy for us to write reusable Ansible roles for MySQL, MongoDB, Nginx, Redis etc. Today we have 21 Ansible roles out of which 10 are “common” roles that are reused by other roles.</p><p>With a uniform structure for these roles, it became very easy to install these roles into different projects to orchestrate a complex stack. Each service which used Ansible for configuration management adhered to a specific list of Ansible tags - <em>bootstrap</em>, <em>deploy</em> which allowed us to use the same ansible playbooks for <strong>AMI creation</strong>, <strong>EC2 instance bootstrapping</strong> and <strong>orchestrating deploys</strong> for each service. We also formed a collection of basic Ansible roles common across all projects which consisted of basic OS packages, monitoring agents, security best practices etc. This formed the foundation of our AMI Build Pipeline driven by Packer and Jenkins.</p><h4><strong>AMIs with Packer and Jenkins</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*ZbCEZcA7OtBmm7mJWVO9xQ.jpeg" /></figure><p>Our Packer AMI Build pipeline takes a stock <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html">AMI</a> from AWS AMI Registry and runs the base Ansible role on it to produce a base AMI. Other applications use this base AMI with the <a href="https://www.packer.io/docs/provisioners/ansible-local.html">Ansible local provisioner</a> to bake their own configuration on top of it. A complex application would contain various server roles in its cluster - <em>app servers</em>, <em>database servers</em>, <em>background workers</em>, <em>cache servers</em> etc. Each of these roles corresponds to an AMI we want to build for that service. We wrote a custom wrapper over Packer which renders <a href="https://www.packer.io/docs/templates/index.html#example-template">Packer JSON templates</a> for each of these server roles. This ensures that we do not hand code Packer templates and can leverage Jenkins to standardize the process of building these AMIs. These AMIs have a specific naming convention which makes the process of querying them trivial within Terraform.</p><h4><strong>Orchestration with Terraform</strong></h4><p>While Ansible describes us how to run each service, the actual process of orchestration is managed via Terraform. Terraform gives us a consistent, repeatable, self documenting way of creating and updating our infrastructure. Moreover all the terraform config is managed in a single git repo <strong>fynd-infrastructure</strong> which gives us an audit log of all the changes that have been carried out in the past. A developer wanting to make changes to the infrastructure checks out a local copy of the repo, makes the required changes, runs <em>terraform plan</em>, <em>terraform apply</em> and pushes his changes upstream. We’ve divided the terraform configuration into a set of <a href="https://www.terraform.io/docs/modules/index.html">modules</a> which can be re-used across various environments.</p><p>To give a concrete example, here’s a Terraform module representing our <a href="http://docs.aws.amazon.com/autoscaling/latest/userguide/AutoScalingGroup.html">Auto Scaling Groups</a> for Application servers. It automatically fetches the latest application AMI created in the last step and sets up an Auto Scaling group of specified size along with Autoscaling Policies for managing scale up and scale down.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d924a1fe52c64091695db8fbe9cecc77/href">https://medium.com/media/d924a1fe52c64091695db8fbe9cecc77/href</a></iframe><p>We use the same Terraform module in production as well as pre production environments to setup all our Auto Scaling Groups. The only thing we need to switch out are the IAM keys, and we’re ready to go. Thanks to Terraform, our pre production environment is a near replica of our production environment.</p><h4><strong>Migrating to our new VPC</strong></h4><p>Once we had all these pieces in place, we started planning our move to newer auto scaled infrastructure. We first setup a <a href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/vpc-peering.html">VPC Peering Connection</a> between the legacy production environment and the new one which allowed us replicate database clusters across VPCs and allow newly built services to access all resources in the older VPC via private network routes. We also setup an <a href="http://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html">Application Load Balancer</a> with Auto Scaling groups for all our services behind it. We then slowly started ramping up traffic from our older Nginx boxes to the new ALB and continuously monitored our API endpoints for errors. Once we had confidence that the ALB had warmed up to serve our production traffic we updated DNS records to point to the new ALB. Another advantage of the ALB + Auto Scaling combo is that all our services are now deployed redundantly across AZs which gives us good fault tolerance both at the load balancer and application tier.</p><p>With this setup in place we had achieved quite a lot of our goals which we laid out initially. It has also become very easy to get more team members acquainted with deploying auto scaled services on our production environment. We moved 4 additional user facing services to Auto Scaling Groups within the last week and none of the developers working on it had any previous background in Infrastructure.</p><h4><strong>Follow on Deployments</strong></h4><p>All our deploy jobs are hosted on Jenkins. Each of these deployment jobs for a service target a specific environment. The services hosted in an Auto Scaling Group are deployed in a rolling fashion to achieve zero downtime during deployments. Since an Auto Scaling environment is ephemeral and the target hosts can change anytime, we use Ansible’s <a href="http://docs.ansible.com/ansible/latest/intro_dynamic_inventory.html#example-aws-ec2-external-inventory-script">dynamic inventory</a> feature to fetch the public IPs for all hosts in particular Auto Scaling Group before initiating the deploy. Deployments on pre production environments initiate automatically on <em>git push</em> to specific branches whereas deployments on production environments can be triggered with a single click.</p><h4>What’s next?</h4><p>We are still a few steps away from completing our infrastructure revamp. We are currently working on migrating our monitoring setup from NewRelic Servers to NewRelic Infrastructure which integrates well with AWS and has a much deeper coverage of host level metrics. We are also building custom tooling to scale out our fleet exactly before a marketing campaign is sent to users. We also have a couple of SPOFs lurking around in our architecture which we intend to remove in order to improve our overall uptime and scalability.</p><p><em>Did you find this post helpful? Let us know in the comments or write to us on devops[at]gofynd.com.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3238ec757281" width="1" height="1" alt=""><hr><p><a href="https://medium.com/fynd-team/how-we-rebuilt-fynds-infrastructure-3238ec757281">How we rebuilt Fynd’s Infrastructure</a> was originally published in <a href="https://medium.com/fynd-team">Building Fynd</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>