<?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 Subhash Medatwal on Medium]]></title>
        <description><![CDATA[Stories by Subhash Medatwal on Medium]]></description>
        <link>https://medium.com/@findsubhash?source=rss-8fc769321fe6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iuiRcg7oddPpZMT_HNOQyg.jpeg</url>
            <title>Stories by Subhash Medatwal on Medium</title>
            <link>https://medium.com/@findsubhash?source=rss-8fc769321fe6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 00:19:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@findsubhash/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[Covid-19: Distributing Essentials with Power of Digital platforms]]></title>
            <link>https://medium.com/@findsubhash/covid-19-distributing-essentials-with-power-of-digital-platforms-a014c648d48f?source=rss-8fc769321fe6------2</link>
            <guid isPermaLink="false">https://medium.com/p/a014c648d48f</guid>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[google-forms]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[google-spreadsheets]]></category>
            <dc:creator><![CDATA[Subhash Medatwal]]></dc:creator>
            <pubDate>Sun, 29 Mar 2020 09:13:13 GMT</pubDate>
            <atom:updated>2020-03-29T09:13:13.051Z</atom:updated>
            <content:encoded><![CDATA[<p>Technology comes handy in the time of crisis. I want to share how I recently build a small way to distribute essentials in our society. Please check this and see if this or similar way can be adopted to distribute essentials among people.</p><h3><strong>Our Problem</strong></h3><ol><li>A simple way to collect orders from residents who need essentials like vegetables, fruits, milk, medicines etc.</li><li>A way to manage consolidated orders list online so volunteers can work on order fulfilment and inform the residents when order is ready</li><li><strong>Payments</strong>: Manage payments through Wallets — PayTM, Google Pay.</li></ol><h3>Solution</h3><ol><li>Use Google form to create an online form which residents can use to place orders. We capture mobile no, apartment number and items details.</li><li>The orders placed using above form are automatically get added to an online excel sheet (Google Spreadsheet). All details filled up in form appear in the sheet automatically. Every order submitted through form will be placed as a row in the sheet.</li><li>Volunteers use the sheet to manage and fulfil orders. Payments status and payment invoices/receipts can also be added to sheet to track payments.</li></ol><p>Next section I will go through the solution in detail so that you can adopt it and build for your use cases:</p><h3>How to use this solution for your use cases</h3><ol><li>First we will create Google form to accept orders</li><li>Go to <a href="https://docs.google.com/forms/u/0/">https://docs.google.com/forms</a></li><li>Create a new form by clicking on “+” icon</li><li>This will show a page where you can create the form</li><li>You can create different entries into form on this page.</li><li>The form is very easy to build. Click on “+” icon to add elements to the form.</li><li>If you need details on how to create entries into the form please checkout videos on youtube. There are many videos that show how to create forms. Sharing one such video. You can get more on youtube.</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FvQw2jDlylDU%3Fstart%3D57%26feature%3Doembed%26start%3D57&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DvQw2jDlylDU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FvQw2jDlylDU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/65175a781ec73201e3fb0318850ad070/href">https://medium.com/media/65175a781ec73201e3fb0318850ad070/href</a></iframe><p>7. Once you are done creating the form, click on send button on right top. It will show you a link to share it will others.</p><p>8. Send this link to others whom you want to fill and submit form.</p><p>9. When others submit form, you will see that responses will start appearing in the form. Only you can see the responses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a014c648d48f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Culture of Innovation]]></title>
            <link>https://medium.com/arvind-internet/a-culture-of-innovation-d831cca48ce9?source=rss-8fc769321fe6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d831cca48ce9</guid>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[company-culture]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <dc:creator><![CDATA[Subhash Medatwal]]></dc:creator>
            <pubDate>Thu, 12 Jul 2018 03:04:15 GMT</pubDate>
            <atom:updated>2018-07-12T08:14:00.477Z</atom:updated>
            <content:encoded><![CDATA[<p>If you decide to do innovation you mostly will not do it. Innovation can not be a planned activity. You can’t just be innovative from tomorrow. You just don’t do innovation. Innovation is a mindset, a habit and often nature of organization and its people. It lies in culture of organization.</p><p>Steve Jobs once mentioned in an interview —</p><blockquote>“Innovation has nothing to do with how many R&amp;D dollars you have. It’s not about the money. It’s about the people you have, how you’re led, and how much you get it.”</blockquote><blockquote>— Steve Jobs, in Fortune, November 9, 1998</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*jPP6PPWUVFN-KIVhrG1AdA.png" /></figure><p>In this post I will talk about how we foster a culture of innovation.</p><h4>An atmosphere of learning</h4><p>Human mind loves learning. From top to bottom everyone in A.I (Arvind Internet) has high cravings for learning. Being an omni-channel SaaS platform, we face unique challenges every day. Immense learning comes from solving customer problems, executions, scaling technology and building products from scratch. It is this thing, that makes our day at A.I.</p><p>We also constantly seek what new technologies, concepts and solutions are being used across the world. For this, we created forums and programs that create opportunities for org-wise learning. Listing some of them below:</p><ul><li><strong>Tech Blogs</strong> — We aggregate RSS feeds from popular technology blogs. <a href="https://github.com/msubhash/Tech-Blog-List/blob/master/README.md">Here </a>is the list of feeds if you want to use. Articles posted on these blogs come straight to our inboxes. This has helped us big time in knowing great architectures and solutions built by organizations. Keeping updated about new technology developments and being receptive to news ideas from all corners.</li><li><strong>Meet ups </strong>— Nothing beats meeting people with similar interest. Meet ups not only provides a great way to catch up on new stuffs but also we get to know smart people. We organize meet ups at A.I office. Do follow us on meetup group —<em> </em><a href="https://www.meetup.com/Omni-Channel-Retail/"><em>Omni Channel</em></a> and checkout <a href="https://www.meetup.com/Omni-Channel-Retail/events/past/">previous meetups</a> at our office. Some of the meet up groups our engineers regularly attend are listed <a href="https://gist.github.com/msubhash/06941725dd88f4872e5f8d2cbc9aaa37"><strong>here</strong></a>.</li><li><strong>Tech Talks</strong> — We share our learning, experiments through tech talk sessions. We also invite people from other companies into our tech talks. In one recent tech talk we had an engaging session from Samik Raychaudhuri, director of Data Sciences Group at [24]7.ai, on big data and personalization using machine learning. We had posted details about it <a href="https://medium.com/arvind-internet/ai-tech-talk-big-data-and-personalization-using-machine-learning-390af32a110f">here</a></li></ul><h4>Freedom to experiment</h4><p>We encourage engineers to learn and experiment with upcoming technologies, concepts and frameworks. For example — We adopted <a href="https://kubernetes.io/">Kubernetes </a>at very early stage. After knowing the capabilities of Kafka as message broker we migrated from RabbitMQ to Kafka in most of our data pipelines. <br>Our motto — <strong>Explore, learn, experiment and adopt if suitable. </strong>It works!</p><h4>Hire great people</h4><p>We consistently seek-out highest quality talent who are not only skilled but also motivated to take on challenges. Who don’t mind failures and rather learn from it. We believe skill and will both are equally important. We have people from some of the well known companies of world. It’s a great atmosphere.</p><h4>Craving for doing better</h4><p>We don’t believe in building “<em>me too</em>” solution, but rather focus on real customer problems. We constantly ask this question — “<strong>How do we make it better?</strong>” Best innovations happen when you compete with yourself. Recently, we had been awarded Best “Omni channel Experience” by Economic Times.</p><h4>Innovations from Grass-roots level</h4><p>When you are consumers of the products you are building, lots of new product ideas come from top to grass-roots level. Some of the well known products at Google (Gmail, Google maps, Google news and even AdSense) were built by Google engineers in their free time.</p><p>We encourage employees to think and prototype new product ideas. We have a forum where we discuss newly submitted ideas and brainstorm on their productization. We call this forum — “<strong>AIdea</strong>”. This forum has participation from various verticals of the org. We got several brilliant ideas from <em>AIdea</em>. One of the ideas submitted here, actually resolved a very big problem with store operations.</p><h4>Store visits</h4><p>Store visits are conducted every month, where employees visit stores, see how the product is being used in store. This is very handy piece. You get to know — How your product is being used by people on the field, what experiences they have, Are they really using it correctly. What are their problems? I personally find this as most impacting learning exercise. Some of the best ideas we got were after visiting stores.</p><h4>Reward and Recognize</h4><p>Like every organization, we have rewards and recognition programs. These are done at various levels — Org level, Team level and peer level. While at org level, people are recognized for larger impacts, at team and peer level one can shout out for individuals. e.g. In our daily standups we recognize someone who did something outstanding previous day. I found this very effective as people are applauded on-spot by peers. This creates lots of bonding.</p><h3><strong>Wrapping up</strong></h3><p>Not only organizations, innovation also forms basis of societies and civilizations. Wrapping up this post with this excellent quote from Jobs</p><blockquote>Creativity is often about connecting experiences we have and create new things. Creative people have more experiences or they have thought more about their experiences.</blockquote><p>This is the question I ask myself everyday — “Do I want to die collecting wealth, properties etc OR do I want to build stuffs that could impact several people’s lives. If your answer is latter, please join us. We are hiring — <a href="https://medium.com/arvind-internet/exciting-careers-arvind-internet-35365cee719a">check this out</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d831cca48ce9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arvind-internet/a-culture-of-innovation-d831cca48ce9">Culture of Innovation</a> was originally published in <a href="https://medium.com/arvind-internet">Arvind Internet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Sourcing TCP plugin for Kong]]></title>
            <link>https://medium.com/arvind-internet/open-sourcing-tcp-plugin-for-kong-d89e9fb270c3?source=rss-8fc769321fe6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d89e9fb270c3</guid>
            <category><![CDATA[api-gateway]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[nginx]]></category>
            <dc:creator><![CDATA[Subhash Medatwal]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 13:40:13 GMT</pubDate>
            <atom:updated>2018-04-05T17:28:51.563Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/arvind-internet/building-a-real-time-api-dashboard-d3921f055aea">last past</a> I talked about how we use capabilities of our API gateway (<a href="https://getkong.org/">Kong</a>) to power a real time API dashboard which gives detail insight into performance of our APIs. We get to know API error rates, latencies, requests per seconds for each API. This dashboard is often a starting point for engineers to debug and trace production issues.</p><p>As mentioned in previous post, to power this information we use kong’s TCP logger plugin which sends information of each API call to a TCP server. It logs everything about API call, except the bodies of request and response. We realized that having bodies of request and response would be a great help for our engineers to trace various kinds of issues. But the kong logger plugin does not support logging bodies of requests, responses. So I decided to write a plugin that logs body also.</p><p>In this post, I will talk about how we built that plugin and overview of the code. The code is available on <a href="https://github.com/arvind-internet-omuni/kong-tcp-body-log">github</a>.</p><p><a href="https://github.com/arvind-internet-omuni/kong-tcp-body-log">arvind-internet-omuni/kong-tcp-body-log</a></p><p>Before I give details about the plugin, let me give details of how kong works.</p><h3><strong>How Kong Works</strong></h3><p>Kong is built on top of Nginx. Nginx is the most popular reverse proxy and load balancer out there. It powers almost <a href="https://news.netcraft.com/archives/2017/01/12/january-2017-web-server-survey.html">29% of top 1 million</a> busiest sites of the world. Nginx was built in 2004. Nginx later added capability to <a href="https://github.com/openresty/lua-nginx-module">embed lua</a> (a programming language) code into Nginx, which brought tonnes of new opportunities and possibilities into Nginx as one could build applications on core functionalities of Nginx.</p><p><a href="https://openresty.org/en/">OpenResty </a>is one such platform built on top of Nginx. It bundles many Nginx modules and Lua libraries. OpenResty Lua libraries execute directly in an Nginx worker. Kong is an OpenResty application. Kong implements clustering, plug‑ins, and a RESTful API that you can use for managing the API gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6kmKE5izCc5WV9S2.png" /><figcaption>Kong Architecture</figcaption></figure><h3>Kong Plugins</h3><p>The most powerful capability of kong is that it can execute a plugin before it proxies the requests to upstream service. A kong plugin is a pieces of code (in lua) that is executed before calling the upstream API.</p><p>There are several kong plugins available. For examples — Plugins for traffic control, security, monitoring, logging etc. Browse a complete list of kong plugins <a href="https://konghq.com/plugins/">here</a>.</p><h3>Anatomy of a kong Plugin</h3><p>A kong plugin consists of two main files:</p><ul><li><strong>Handler </strong>— In this file you specify the custom code to execute at different times in the lifecycle of a request. e.g. You may want to execute code when request arrives from client or when response is received from upstream server. In Handler you specify the code to be run at various such contexts. A good intro to handler can be found <a href="https://getkong.org/docs/0.5.x/plugin-development/custom-logic/">here</a>.</li><li><strong>Schema — </strong>Here you specify the configuration for the plugin. For example in our case we wanted to configure the TCP end point for our plugin.</li></ul><h3>Implementing our TCP log plugin</h3><p>The task was to log request, response bodies and headers to a TCP server. The <a href="https://getkong.org/plugins/tcp-log/">default tcp log plugin</a> from Kong does this except logging the request, response bodies. So I took TCP log plugin and extended it to log bodies as well. This was tricky as I had to change the default serializer such that it can also de-serialize the bodies. I looked at runscope plugin’s code to understand how it extracts body of the request. In the following section, I will give high level walk through of the code.</p><h3>Code Overview</h3><p>The entire code is on <a href="https://github.com/arvind-internet-omuni/kong-tcp-body-log">github</a>. The instruction to install and run this plugin is also there. In this section I will walk you through the code.</p><p>Entire plugin is implemented in 3 files — handler.lua, schema.lua, log.lua.</p><p><strong>handler.lua</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7235d8c3a2b3b915f6a68e0bfdd21c55/href">https://medium.com/media/7235d8c3a2b3b915f6a68e0bfdd21c55/href</a></iframe><ul><li>When a request is received from a client, function <em>access</em>() is executed. It captures the request body.</li><li>Similarly when response for a request is received, then function body_filter() is invoked. It captures the response body.</li><li>In both the cases respective headers are also captured.</li><li>Once the bodies and headers are captured, it prepares a message, wrapping bodies and headers and then calls the TCP log() function of log.lua which sends this information over TCP.</li><li>There is one important thing to note here —In Kong request and response are asynchronous operations, then how request and responses bodies are shared? Nginx provides a way to share data between different phases of same request using <strong>ngx.ctx.</strong> It is a lua table, that stores per-request Lua context data and has a life time identical to the current request. You can read more about it <a href="https://idndx.com/2018/01/19/data-sharing-in-openresty/">here</a>.</li></ul><p>log.lua</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/022ae97f9f2d18bad2d77f8bcc8a3668/href">https://medium.com/media/022ae97f9f2d18bad2d77f8bcc8a3668/href</a></iframe><ul><li>Connects to TCP server and send the body in the payload</li><li>log() functions is called from handler to log the request</li><li>Maintains keep alive and timeout</li></ul><p>schema.lua</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/047a19418f0bbea49865fa8b05036084/href">https://medium.com/media/047a19418f0bbea49865fa8b05036084/href</a></iframe><ul><li>Accepts tcp server end points, keep alive, timeout configuration</li></ul><p>That’s it! This plugin can also be extended to log to http end points instead of TCP. You just need to change the log.lua file to write to http end points. The <a href="https://github.com/Kong/kong/tree/master/kong/plugins/http-log">http-log</a> plugin of kong will be a good reference.</p><p>Thanks you for reading.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d89e9fb270c3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arvind-internet/open-sourcing-tcp-plugin-for-kong-d89e9fb270c3">Open Sourcing TCP plugin for Kong</a> was originally published in <a href="https://medium.com/arvind-internet">Arvind Internet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a real time API dashboard]]></title>
            <link>https://medium.com/arvind-internet/building-a-real-time-api-dashboard-d3921f055aea?source=rss-8fc769321fe6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3921f055aea</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[high-performance]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[elasticsearch]]></category>
            <dc:creator><![CDATA[Subhash Medatwal]]></dc:creator>
            <pubDate>Tue, 27 Mar 2018 07:10:33 GMT</pubDate>
            <atom:updated>2018-03-27T07:10:33.219Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*owNr91fQIuuNa2V5z6dWcg.png" /></figure><p>Our CEO often mentions this excellent quote — <strong>What gets measured gets done. </strong>This profound advice is applicable in every field — business, finance, technology and others. One needs to measure a problem before solving it.</p><p>In case of products that power businesses and consumer journeys, how do we measure efficiency of business operations and end user experiences? For example — How much time does it take to process inventory updates across multiple services or how many end user journeys are affected by system errors and so on.</p><p>Business operations and end user journeys are powered by software services and systems we build. In a service oriented architecture, services communicate with each other via APIs. Measuring performance of the APIs, their availability, latencies are essential to measuring business operations efficiencies and end user experiences.</p><p>Higher level business and system metrics are <strong>tied with</strong> low level telemetry. We need to measure right API performance metrics to measure the efficiencies of business ops and journeys.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pFjHS3NyNYkpci-hSVw0hQ.png" /><figcaption>How performance at various levels are tied together</figcaption></figure><p>In this post I will talk about how we built a dashboard to provide the real time performance of our APIs</p><h3><strong>About the Dashboard</strong></h3><p>It showcases followings performance metrics for each of our API over a period.</p><ul><li>Error Percentage</li><li>Requests per Second (RPS)</li><li>Number of 4xx, 5xx API Calls</li><li>Percentile latencies (90, 95,99)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YazA6C7t-RS8VucaUi39Bg.png" /><figcaption>API Performance Dashboard</figcaption></figure><h3>How is it powered?</h3><p>All our inter service communication is done via APIs. We use an API gateway called <a href="https://getkong.org/"><strong>Kong </strong></a>in all inter service API calls i.e. When service A calls API of service B, it is done via API gateway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*YeQOmrNDRk5sX-F0xDTWqw.jpeg" /><figcaption>Inter service communication via API Gateway — Kong</figcaption></figure><h3>About Kong</h3><p>Kong API gateway is built on top of famous NGINX. Kong processes the API requests and proxies it to the upstream service API. A detailed explanation about Kong might be out of scope here, but you might wanna read this <a href="https://www.nginx.com/blog/microservices-api-gateways-part-2-how-kong-can-help/">blog post</a> to know more.</p><p>The most powerful capability of kong is that it can execute a plugin before it proxies the requests to upstream service. A kong plugin is a pieces of code (in lua) that is executed before calling the upstream API.</p><p>There are several kong plugins available. For examples — Plugins for traffic control, security, monitoring, logging etc. Browse a complete list of kong plugins <a href="https://konghq.com/plugins/">here</a>.</p><p>We used the TCP Logging plugin which pushes logs of API requests and responses to a TCP server. We created a tcp server using <a href="https://www.elastic.co/products/logstash">logstash</a>’s tcp-input plugin. We pipe this data to kafka using logstash’s kafka output plugin. Then we use kafka’s elasticsearch connector to move data from kafka to elasticsearch.</p><p>This entire pipeline looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*RZCa5kRWsQslO7K5gSdKQA.jpeg" /><figcaption>Data pipeline to export kong traffic logs to elasticsearch</figcaption></figure><p>Using this data pipeline the requests, response information, status, latencies of every API call arrives into elasticsearch in real time. This is powerful.</p><p>One might question why use kafka in above data pipeline? Logstash already has output plugin for elasticsearch, we could have sent data to elasticsearch from logstash. Why pipe it through kafka? This is done to make sure we write into elasticsearch at fixed rate. Without kafka, data would be directly written into Elasticsearch from logstash. During traffic bursts it might be beyond write throughput of elastisearch. To avoid this either we put a strong machine or write into elasticsearch at a fixed rate. Kafka acts like a buffer in middle and holds the data while it is being written into elasticsearch at a fixed rate. The obvious trade off with this approach is that makes it near-real-time as data is queued up in Kafka topic queues.</p><p>We built a small service that provides APIs to fetch data from elasticsearch and power dashboard.</p><p>Not just API performance, this data gives us lots of more insights and enables more use cases —</p><ul><li><strong>Inter Service Communication Graph </strong>— Which all services are communicating with each other. What APIs of a service are being used by other services. This is very handy information when changing APIs or deprecating them.</li><li><strong>Alert on API performance</strong> — We built alerts when API responses are high or they are failing.</li><li><strong>Kubernetes pod identification— </strong>We also get to know the IP address of pod servicing request. With this we can track the request to exact pod and check the pod health, logs. This is very useful for developers.</li></ul><h3>Conclusion</h3><p>This dashboard gives one view of all APIs and is often the starting point for engineers and support team to trace production issues. Erroneous requests are traced further into APM tools like Grafana and PinPoint to find the root causes.</p><p>So remember — “<strong>What gets measured, gets done</strong>”.</p><p>Thank you for reading.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3921f055aea" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arvind-internet/building-a-real-time-api-dashboard-d3921f055aea">Building a real time API dashboard</a> was originally published in <a href="https://medium.com/arvind-internet">Arvind Internet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Applying Word2Vec on our catalog data]]></title>
            <link>https://medium.com/arvind-internet/applying-word2vec-on-our-catalog-data-2d74dfee419d?source=rss-8fc769321fe6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d74dfee419d</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[fashion]]></category>
            <category><![CDATA[word2vec]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Subhash Medatwal]]></dc:creator>
            <pubDate>Fri, 05 Jan 2018 06:38:32 GMT</pubDate>
            <atom:updated>2018-01-05T09:04:20.814Z</atom:updated>
            <content:encoded><![CDATA[<p>We are living in an era of revolution brought by recent researches in deep learning and easy availability of large computing power.</p><p>At Arvind Internet, we use Machine learning on variety of data to build great products. In this post i want to share some of the interesting results we found when we applied word2vec on our product description data. The goal was to find relationship between words and find similar words. Before I tell you more about what I did, let me briefly describe what is word2vec and details about the data.</p><h3><strong>What is Word2vec?</strong></h3><p><a href="https://en.wikipedia.org/wiki/Word2vec">Word2vec </a>algorithm was first created at Google in 2013. Word2vec takes a corpus of text and outputs a vector space. Each word vector in this space represent a word in corpus. Hence the name word2vec(tor).</p><p>Words which have “<strong>same context”</strong> are neighbors in the vector space. The catch here is “same context”. The location of a word relative to another word gives relationship between them. Take this famous example often given while explaining word2vec.</p><blockquote>king — man + woman = queen</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/507/1*dm9dudL37B6JG8saeR3zIw.png" /></figure><p>The relationship between words are derived from distances between words. So if you start from word “king” (in the vector space) and move the same distance and direction between “man” and “woman”, you end up in the area where “queen” appears. So if you apply addition and subtraction on the word vectors of words (<em>king</em>, <em>man</em>, <em>woman, queen), </em>equations like above are possible — king — man + woman = queen</p><p>We did same on our data and found some interesting relationships between words.</p><h3>About the data</h3><p>On our website <a href="http://www.nnnow.com/">nnnow.com</a>, we have a small description for each product.</p><p>For example for one of the jeans, the description is:</p><blockquote>Upgrade your denim collection with these impeccably washed jeans by U.S. Polo Assn. Cut from breathable cotton with a hint of stretch, they sit at mid waist and have five handy pockets. Wear yours cuffed with a plaid shirt and sneakers.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CJ8ZxUW3edr85eqo-dIi2g.png" /></figure><p>I took descriptions of 15,000 products and fed into word2vec algorithm. I used <a href="https://radimrehurek.com/gensim/models/word2vec.html">gensim’s </a>word2vec implementation.</p><p><strong>Here is the code:</strong></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/baee65225f6464d6de8e64bfe557c8d3/href">https://medium.com/media/baee65225f6464d6de8e64bfe557c8d3/href</a></iframe><p>One the model is saved, evaluate the model:</p><pre>&gt;&gt;&gt; from gensim.models import Word2Vec<br>&gt;&gt;&gt; model = Word2Vec.load(“model.mm”)</pre><pre># Find words similar to &quot;jeans&quot;</pre><pre>&gt;&gt;&gt; model.wv.most_similar([‘<strong>jeans</strong>’], topn=1);<br>[(&#39;<strong>pants</strong>&#39;, 0.8557192087173462)]</pre><h3>Results</h3><p>The results were pretty interesting and some were astonishing. Take a look:</p><h4><strong>1. Find how brands are similar to each other:</strong></h4><p>So from the given description of styles, “<strong>Nautica</strong>” is similar to which other brands.</p><p>We found Nautica is similar to Gant (92%), Izod(91%), Tommy (88%), Elle(86%), Aeropostle(85%).</p><blockquote><em>&gt;&gt;&gt; model.wv.most_similar([‘</em><strong><em>Nautica</em></strong><em>’], topn=5);<br>[(‘Gant’, 0.9252288937568665), (‘Izod’, 0.916165828704834), (‘Tommy’, 0.885221540927887), (‘Elle’, 0.8621432185173035), (‘Aeropostale’, 0.8563322424888611)]</em></blockquote><h4><strong>2. Find similar article types:</strong></h4><p>Items similar to <strong>Jeans — </strong>pants (85%), denims(79%), sweatpants (79%), jeggings (79%), joggers (79%)</p><blockquote>&gt;&gt;&gt; model.wv.most_similar([‘jeans’], topn=5);<br>[(‘pants’, 0.8557192087173462), (‘denims’, 0.7956579327583313), (‘sweatpants’, 0.7948166728019714), (‘jeggings’, 0.7919270992279053), (‘joggers’, 0.7907577157020569)]</blockquote><h4><strong>3. Add and Subtract words</strong></h4><p>We can add and subtract word vectors and this opens up enormous possibilities of adding and subtracting contexts.</p><p>For example — If i subtract “shirt”, “bow” and “waistcoat” from “suit”, it replies “jeans” !</p><p><strong>suit — shirt — bow — waistcoat = jeans</strong></p><blockquote>&gt;&gt;&gt;model.wv.most_similar(<strong>positive</strong>=[‘suit’], <strong>negative</strong>=[‘shirt’, ‘bow’, ‘waistcoat’], topn=1)<br>[(‘jeans.’, 0.4214898943901062)]</blockquote><p>Some more interesting results:</p><p><strong>party + weekend + clothing = holiday</strong></p><blockquote>model.wv.most_similar(positive=[‘party’, ‘weekend’, ‘clothing’], topn=1)<br>[(‘holiday’, 0.8865032196044922)]</blockquote><p><strong>party + weekend + clothing — enjoy = work-out</strong></p><blockquote>model.wv.most_similar(positive=[‘party’, ‘weekend’, ‘clothing’], negative=[‘enjoy’], topn=1)<br>[(‘work-out’, 0.8274893760681152)]</blockquote><p><strong>party + weekend + polo = seasonal</strong></p><blockquote>model.wv.most_similar(positive=[‘party’, ‘weekend’, ‘Polo’], topn=1)<br>[(‘seasonal’, 0.8255293965339661)]</blockquote><p><strong>shirt — buttons = sweater</strong></p><blockquote>model.wv.most_similar(positive=[‘shirt’], negative=[‘buttons’], topn=1)<br>[(‘sweater’, 0.7139133810997009)]</blockquote><p><strong>jeans + office = chinos</strong></p><blockquote>model.wv.most_similar(positive=[‘jeans’, ‘office’], topn=1)<br>[(‘chinos’, 0.8614673614501953)]</blockquote><p><strong>shirt + jeans + tie + work = suit</strong></p><blockquote>model.wv.most_similar(positive=[‘shirt’, ‘jeans’, ‘tie’, ‘work’], topn=1)<br>[(‘suit’, 0.8383824229240417)]</blockquote><h3>Conclusion</h3><p>The results proved the point that machine learning can provide so many dramatic and meaningful solutions and machine learning is Fun!</p><p>Thanks for reading.</p><p>Cheers!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d74dfee419d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/arvind-internet/applying-word2vec-on-our-catalog-data-2d74dfee419d">Applying Word2Vec on our catalog data</a> was originally published in <a href="https://medium.com/arvind-internet">Arvind Internet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Indian parents are searching? Insights from Questy]]></title>
            <link>https://medium.com/@findsubhash/what-indian-parents-are-searching-insights-from-questy-31dc837e83c1?source=rss-8fc769321fe6------2</link>
            <guid isPermaLink="false">https://medium.com/p/31dc837e83c1</guid>
            <category><![CDATA[parenthood]]></category>
            <category><![CDATA[parents]]></category>
            <category><![CDATA[working-parents]]></category>
            <category><![CDATA[parenting]]></category>
            <category><![CDATA[india]]></category>
            <dc:creator><![CDATA[Subhash Medatwal]]></dc:creator>
            <pubDate>Mon, 22 Aug 2016 12:44:17 GMT</pubDate>
            <atom:updated>2016-08-22T12:44:17.578Z</atom:updated>
            <content:encoded><![CDATA[<p>When I launched Questy in February, I did not expect it would grow this fast.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*-pNpF-x1WVXuvtrC." /></figure><p>BTW if you don’t know Questy, it is a search engine for Indian parents to find solutions to everyday parenting problems. Read the <a href="https://www.linkedin.com/pulse/questy-search-engine-indian-parents-wwwquestyin-subhash-medatwal?trk=pulse_spock-articles">previous post</a> about it or visit <a href="http://www.questy.in/">www.questy.in</a></p><p>Key to any successful product is all about knowing the target users well. At Questy we analyze lots of user metrics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*FGPMqq4CFksWtkzG." /></figure><h3>Search Trends on Questy</h3><p>In this post I want to share what parents are searching on Questy. We categorized search terms in various areas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/0*_Yg_51FBS08SauKd." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/0*LFl3ZCAVjFHiETSj." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/652/0*MENR2_9tQIOJlvQ6." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/0*r02s4xrDRWgBl0C6." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/0*bBuynw8rwn2fbPt0." /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/0*rxQvON1r3CawNt5X." /></figure><p>Questy needs enhancements and there is a long way to go but it is heading in right direction. We will be publishing more interesting insights in future.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31dc837e83c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>