<?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[Mindtickle - Medium]]></title>
        <description><![CDATA[The Mindtickle Revenue Productivity Platform is a solution for your entire sales team to elevate team performance, achieve more sales quotas, and drive revenue. - Medium]]></description>
        <link>https://medium.com/techmindtickle?source=rss----9c96438756ee---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Mindtickle - Medium</title>
            <link>https://medium.com/techmindtickle?source=rss----9c96438756ee---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 09:02:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/techmindtickle" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Upgrading Python from 3.9 to 3.11: Leveraging AI Tools for a Smooth Transition]]></title>
            <link>https://medium.com/techmindtickle/upgrading-python-from-3-9-to-3-11-leveraging-ai-tools-for-a-smooth-transition-f502d5da3944?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/f502d5da3944</guid>
            <category><![CDATA[windsurf]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[cursor-ai]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Parv Oberoi]]></dc:creator>
            <pubDate>Wed, 02 Apr 2025 06:14:16 GMT</pubDate>
            <atom:updated>2025-04-02T06:14:16.746Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TEXhBLSobQJUQj6CWSyqlg.png" /></figure><p>Upgrading Python versions unlocks significant performance improvements and introduces exciting new features. As we well know every software engineer truly dreams of spending their days untangling cryptic dependency errors and decoding obscure deprecation warnings. and thus version upgrade projects are the most sought after and overfunded projects in every company. Jokes aside, handling such tasks can genuinely be challenging and cumbersome, especially in extensive codebases without unit tests.</p><p>Thankfully, powerful AI-driven IDE tools, like <strong>Cursor</strong> and <strong>Windsurf</strong>, with their agentic capabilities, have made this notoriously tedious process far more manageable — and dare I say, enjoyable.</p><h3>Why Upgrade to Python 3.11?</h3><p>Python 3.11 brings multiple benefits:</p><ul><li><strong>Faster Execution:</strong> Significant performance improvements compared to 3.9.</li><li><strong>Enhanced Features:</strong> Improved error messages, better typing, and more intuitive syntax.</li></ul><p>But upgrading isn’t just clicking a button — especially without tests.</p><h3>Scope of the Challenge</h3><p>Before diving into the <strong>How</strong>, it’s worth outlining the scope of the challenge we faced:</p><ul><li><strong>Repository 1:</strong> ~700 lines of code across 18 files — <strong>Number of unit tests: 0</strong></li><li><strong>Repository 2:</strong> ~6000 lines of code across 150+ files — <strong>Number of unit tests: 0</strong></li></ul><h3>Our Approach to Solving the Problem</h3><p>To tackle the challenge effectively, we adopted a phased strategy:</p><ol><li><strong>Add unit tests to increase test coverage to 90%+ using the current Python version</strong>.</li><li><strong>Upgrade to Python 3.11 and resolve any dependency conflicts</strong></li><li><strong>Re-run the test suite post-upgrade</strong> — Any failing tests now directly point to upgrade-related issues, which we fixed by updating the underlying code.</li></ol><p>This structured approach ensured that the upgrade was both efficient and low-risk.</p><h3>Step 1: Establishing Unit Test Coverage</h3><p>Our first goal: achieve over 90% unit test coverage to facilitate a reliable and smooth transition.</p><h3>Using Cursor</h3><p>For a small repository (~700 lines, 8–9 files), we chose <strong>Cursor</strong>, an IDE powered by GPT models, utilizing its single-file chat mode:</p><ul><li><strong>Process:</strong> Directly prompted Cursor to generate isolated pytest-compatible unit tests.</li><li><strong>Outcome:</strong> Achieved rapid success, effortlessly reaching our coverage targets.</li></ul><p>The simplicity was exceptional:</p><blockquote><strong>Important takeaway:</strong> Cursor excels in straightforward, manageable codebases, making tedious manual testing nearly obsolete. (Note: This testing was conducted before Cursor added its agentic support.)</blockquote><h3>Scaling Up with Windsurf’s Agentic Automation</h3><p>However, our next repository involved over 6000 lines across 150+ files. Clearly, the manual approach wouldn’t cut it.</p><p>Enter <strong>Windsurf</strong>, an agentic IDE tool designed precisely for this kind of challenge.</p><h4>Agentifying the Requirements</h4><p>We codified our manual process into an actionable Windsurf prompt:</p><pre>source .venv/bin/activate &amp;&amp; coverage run --source &lt;folder_1&gt; -m pytest tests &amp;&amp; coverage report --show-missing</pre><pre>use the missing coverage information to find the file with the highest number of uncovered lines and write unit tests for them under ./tests/&lt;folder_1&gt;/</pre><pre>write the unit tests compatible with pytest, ensuring isolation using appropriate setup and teardown. Do not alter existing code; iterate solely on tests to ensure successful execution.</pre><h4>Windsurf’s Results:</h4><ul><li>Automatically prioritized files based on uncovered lines.</li><li>Generated isolated, comprehensive unit tests.</li><li>Dramatically reduced manual intervention, quickly hitting the desired coverage mark.</li></ul><blockquote><strong>Important takeaway:</strong> Windsurf effectively automates testing at scale, efficiently handling complex codebases.</blockquote><h3>An Unexpected Discovery: Python Coverage Tool</h3><p>Interestingly, during this upgrade journey, we discovered that Python’s coverage tool is smarter than we initially thought — perhaps even too smart. It identifies and displays coverage for code that might execute during startup, even without explicit unit tests targeting those lines. This nuance can make interpreting coverage reports slightly misleading, highlighting the importance of careful review and understanding of what the tool actually reports.</p><p>To drive greater confidence in our coverage numbers, we use the `dynamic_context` option within the python coverage tool to validate that the coverage numbers being reported are powered by actual tests.</p><h3>Step 2: Performing the Upgrade</h3><p>With robust tests in place, upgrading from Python 3.9 to 3.11 became straightforward</p><h3>Identifying and Resolving Issues</h3><p>Our comprehensive test suite quickly highlighted:</p><ul><li><strong>Deprecated APIs and syntax adjustments</strong> required by Python 3.11<br>- <em>TypeError: Passing coroutines is forbidden, use tasks explicitly</em> was deprecated since 3.8 but removed in 3.11</li><li><strong>Dependency version conflicts</strong> needing resolution.</li></ul><h3>AI vs Traditional Approaches: A Side-by-Side Comparison</h3><p>To fully appreciate the impact of this AI-powered workflow, it’s worth contrasting it with how things would typically unfold using a conventional, non-AI approach.</p><h3>🚀 AI-Powered Workflow:</h3><ul><li>Completed the upgrade of both repositories in <strong>under one week</strong>.</li><li>Required <strong>no prior knowledge</strong> of the codebase or collaboration with original developers.</li><li>Used AI not just for generating code, but also for understanding local testing setups, including external dependencies like <strong>RabbitMQ</strong>.</li><li>Enabled a single engineer to perform a large-scale upgrade with minimal context or support.</li></ul><h3>🐢 Traditional Workflow:</h3><ul><li>Likely a <strong>multi-month project</strong>, requiring multiple sprints and dedicated engineering time.</li><li>Dependent on <strong>deep domain expertise</strong> and intimate familiarity with code structure.</li><li>Would need manual exploration, documentation review, and trial-and-error to configure test environments.</li><li>Involves multiple rounds of coordination with original code owners to ensure accuracy.</li></ul><blockquote><strong><em>Key takeaway:</em></strong><em> AI tools are not just accelerators — they’re enablers. What was once only feasible by domain experts is now accessible to any motivated engineer with a good prompt.</em></blockquote><h3>Tools Used</h3><p>Throughout this process, several tools and models played a critical role in making the upgrade painless and successful:</p><h3>IDEs &amp; Utilities:</h3><ul><li><strong>Cursor</strong></li><li><strong>Windsurf</strong></li><li><strong>uv</strong></li><li><strong>ruff</strong></li><li><strong>black</strong></li></ul><h3>Models Leveraged:</h3><p>In order of their effectiveness and performance for test generation</p><ul><li><strong>OpenAI o3-mini</strong></li><li><strong>DeepSeek R1</strong></li><li><strong>Claude Sonnet 3.5</strong></li></ul><h3>Future Work</h3><h4>Validating Quality of Tests</h4><p>While achieving 90%+ unit test coverage was a major milestone, coverage alone doesn’t always reflect test quality. To further validate and enhance the effectiveness of our tests, our next step involves <strong>mutation testing</strong> to build greater confidence in our coverage metrics.</p><h4>Static Analysis</h4><p>Use mypy for static analysis to fix any legacy code smell patterns that exist in our projects.</p><h3>Some AI Idiosyncrasies Faced</h3><p>While AI tools significantly accelerated our upgrade journey, they weren’t without quirks. To highlight a few issues that cropped up during the process:</p><ul><li><strong>Imaginary Dependencies:</strong> The LLM occasionally tried to install packages that didn’t exist — for example, it confidently recommended ddtrace==1.25.0, which is not a valid version.</li><li><strong>Unwanted Dependency Substitutions:</strong> The LLM persistently suggested replacing our optimized orjson dependency with ujson, as a pure-Python alternative, likely due to popularity bias in training data.</li></ul><p>While minor, these missteps highlight the importance of maintaining human oversight, even when AI is doing the heavy lifting.</p><h3>Conclusion: AI Tools — Turning Dread into Delight</h3><p>While wrestling with dependency issues and compatibility might not be what we envisioned when choosing software engineering, tools like Cursor and Windsurf have truly transformed the experience.</p><p>Not only did we successfully upgrade our Python versions, but we also substantially improved our project’s reliability and maintainability. That’s an upgrade story genuinely worth celebrating!</p><p><strong>Did you know about Python’s coverage tool behaviour?</strong></p><p>If you’ve encountered this or have insights, please leave a comment below!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f502d5da3944" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/upgrading-python-from-3-9-to-3-11-leveraging-ai-tools-for-a-smooth-transition-f502d5da3944">Upgrading Python from 3.9 to 3.11: Leveraging AI Tools for a Smooth Transition</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Streamlining LLM Evaluations: Introducing Mindtickle’s LLMOps Platform]]></title>
            <link>https://medium.com/techmindtickle/streamlining-llm-evaluations-introducing-mindtickles-llmops-platform-a9a8880554bf?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/a9a8880554bf</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[platform]]></category>
            <dc:creator><![CDATA[Parv Oberoi]]></dc:creator>
            <pubDate>Mon, 06 Jan 2025 07:36:30 GMT</pubDate>
            <atom:updated>2025-01-06T07:51:04.633Z</atom:updated>
            <content:encoded><![CDATA[<p>The advent of <strong>Large Language Models (LLMs)</strong> have undeniably revolutionised how businesses build, communicate, and interact with their customers. At <strong>Mindtickle</strong>, we’ve embraced this revolution by integrating LLMs across our product stack, powering features that our customers engage with daily. However, with great power comes great responsibility — and a fair share of challenges.</p><p>One of the most significant hurdles we have faced is the regular evaluation and monitoring of these LLM-powered features. The rapid pace of development in the LLM ecosystem means new models are released constantly, each claiming superior performance in specialised or general capabilities. In such a dynamic landscape, relying on a single LLM model, version, or vendor could result in a subpar experience for our customers.</p><p>So, how do we stay ahead of the curve?</p><h3>The Challenge: Navigating a Fast-Paced LLM Landscape</h3><p>In a world where LLM vendors are in a constant race to outdo one another, it’s crucial to ensure that the models we deploy are truly the best fit for our real-world problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mY32v8c7cjolYpDYjXRHOQ.png" /><figcaption>source: <a href="https://arxiv.org/html/2406.00515v1">https://arxiv.org/html/2406.00515v1</a></figcaption></figure><p>The question we grappled with was:</p><p><strong>How can we compare the performance of various LLM models, prompts, vendors, and configurations on problems relevant to Mindtickle? And when we decide to ship a change involving LLMs into our production ecosystem, how can we be confident that we’re improving the system as a whole?</strong></p><h3>The Solution: Enter LLM Flow — Our In-House LLMOps Platform</h3><p>To tackle this challenge, we developed <strong>LLM Flow</strong>, a centralized platform designed to simplify the process of evaluating usecases powered by LLMs. Built using the open-source <strong>Apache Airflow</strong>, LLM Flow allows us to reimagine our product features as pipelines, akin to any standard machine learning problem:</p><p>Using Airflow we are able to map these pipelines to Directed Acyclic Graphs or DAGs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*KO5znZ00YRFU9oj5O2wcfg.png" /></figure><h3>Tailoring Pipelines for Diverse Use Cases</h3><p>Each product team at Mindtickle can map their specific use cases into this pipeline. Thanks to the flexibility of Airflow, we can define utility operators to ingest data from any source — be it S3 buckets, direct API invocations, MySQL/Postgres databases, etc. Custom data transformation operators ensure we mimic production environment processes as closely as possible.</p><h3>A Library of LLM Vendor Integrations</h3><p>We’ve also developed a library of LLM vendor integrations. By standardising input and output schemas for LLM executions, product teams can seamlessly test their use cases across a variety of LLM models, vendors, and configurations. This uniformity accelerates the evaluation process and fosters consistency across different teams and projects.</p><h3>Metrics That Matter: Evaluating Performance and Cost</h3><p>Peter Drucker famously stated, “<strong>If you can’t measure it, you can’t improve it.</strong>” LLM Flow is designed not only to simplify model experimentation but also focusses on crucial measurement aspects.</p><p>The platform automatically calculates vital core metrics:</p><ul><li><strong>Tokens Consumed and Generated</strong>: Understanding token usage helps optimise prompts and manage costs.</li><li><strong>Latency</strong>: Measuring response times ensures the models meet our performance standards.</li><li><strong>Cost</strong>: Keeping track of expenses is crucial, especially when scaling up.</li></ul><p>Whenever a job is executed on LLM Flow, these metrics will be computed and presented out of the box to our users.</p><h3>Custom Evaluation Operators</h3><p>Beyond these standard metrics, product teams can build operators to evaluate the outputs generated by the LLM models. These evaluation operators range from simple tasks — like verifying if the output is a valid JSON — to complex assessments using LLM judge/jury prompts. By modularising these evaluations into operators, we maintain flexibility and adaptability in our assessment processes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*skfu0IFIYt_lHDgUu4xJFg.png" /><figcaption>Sample DAG for Classification</figcaption></figure><h3>Speed and Efficiency: Evaluating New Models in Under 24 Hours</h3><p>One of the standout benefits of LLM Flow is the speed at which we can integrate and evaluate new models. With our comprehensive library and standardized processes, whenever a vendor releases a new model, we’re able to incorporate it and assess its performance on our suite of use cases in <strong>less than 24 hours</strong>.</p><p>This rapid turnaround is pivotal in ensuring that we consistently provide our customers with the best possible experience, leveraging cutting-edge technology without delays.</p><h3>The Complexity of Evaluating LLM Outputs</h3><p>Evaluating machine learning models has always been challenging, but LLMs introduce an even greater level of complexity and ambiguity. Traditional ML models often involve classification or regression tasks where outputs can be directly compared to known correct values. With LLMs, we’re dealing with large streams of generated text — like summaries or conversational answers — where exact matches are rare.</p><h3>Leveraging LLMs for Evaluation: The Judge and Jury Approach</h3><p>In these cases, instead of seeking exact matches, we employ other LLMs in a <strong>judge or jury setup</strong> to evaluate the outputs. This method allows us to assess the quality of the generated content more accurately, considering factors like coherence, relevance, and correctness, which are difficult to quantify otherwise.</p><p>With LLM Flow we are able to build dynamic DAGs which provide support for such evaluations.</p><h3>Comparing Evaluation Jobs</h3><p>If you are with us so far you would have realised a problem, its great that we are able to run all these evaluations but now we are faced with an unenviable task of comparing the results from each of the evaluation runs and identifying the best one.</p><p>We have streamlined this activity by exporting all the outputs generated by each operator within an experiment run to Snowflake. On Snowflake we have built dashboards powered by python notebooks and custom procedures which take in as input a single or list of LLM Flow run_ids and create a comparison view of the results simplifying the process of selecting the best option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*blb5V47hWtdm-CcdY7GvLw.png" /><figcaption>Single Run Comparison</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*N_JnfwRVe-wDF86EArOgdw.png" /><figcaption>Batch Run Comparison</figcaption></figure><h3>Realtime Monitoring of LLM Powered Features</h3><p>Anyone who has deployed ML applications knows that ensuring your model performs as expected in Production is a similar if not a bigger challenge than building the POC. With LLM models realtime monitoring of problems such as data drift, model prediction distribution are even more complicated due to the unstructured nature of the inputs that these models work on.</p><p>In production where we use LLM we log the inputs sent to the LLM as well as the outputs generated by it, we can then sample this traffic and run evaluation pipelines already built in LLM Flow during the evaluation stage. This gives us the ability to understand how are features are performing for our end customers and thus catch any issues in terms of model performance degradation or data drift before it become a problem visible to our end users.</p><h3>Extending LLM Flow to Multi Modal Flow</h3><p>Initially, our platform development centered on unstructured text data, as our primary product features revolved around it. However, during this process, we discovered that significant errors in our system were stemming from our Automatic Speech Recognition (ASR) model, which frequently resulted in inaccurate transcriptions of calls, submissions, and other audio sources. Reflecting on the adage <strong>“Garbage In, Garbage Out,”</strong> it became clear that we needed to benchmark various ASR solutions using our data to identify the most suitable model for our needs.</p><p>Our team rapidly constructed an ASR benchmarking pipeline within LLM Flow, enabling us to integrate and evaluate multiple ASR vendors as well as self-hosted models (which warrants a separate blog post). This initiative allowed us to seamlessly extend LLM Flow into LMM Flow, significantly enhancing our platform’s capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vUj6IE6chavWAZjeXiV-nA.png" /></figure><h3>Looking Ahead: The Future of LLMs at Mindtickle</h3><p>The integration of LLMs into our products has opened up incredible possibilities at Mindtickle. However, ensuring these models perform optimally and deliver value to our customers requires robust evaluation and monitoring systems. <strong>LLM Flow</strong> has empowered us to navigate the fast-evolving LLM landscape confidently, enabling rapid testing and deployment of the best models for our needs.</p><p>As we continue to refine LLM Flow and adapt to new advancements, we’re excited about the future of LLMs and their potential to transform businesses and customer interactions even further.</p><p>Co-written by: <a href="https://medium.com/u/dae41b103190">Vyankatesh Deshpande</a>, <a href="https://medium.com/u/55abccea7560">Mayank Kumar</a>, <a href="https://medium.com/u/6b5d19666358">Parv Oberoi</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9a8880554bf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/streamlining-llm-evaluations-introducing-mindtickles-llmops-platform-a9a8880554bf">Streamlining LLM Evaluations: Introducing Mindtickle’s LLMOps Platform</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Elements of good design-dev collaboration]]></title>
            <link>https://medium.com/techmindtickle/elements-of-good-design-dev-collaboration-9b7d91f28ba5?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/9b7d91f28ba5</guid>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Himanshu Bansal]]></dc:creator>
            <pubDate>Mon, 29 Jun 2020 07:03:08 GMT</pubDate>
            <atom:updated>2020-06-29T07:03:08.618Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gVgnv526cxsT_TPw7AQU2A.jpeg" /></figure><p>With the prevalence of product companies in India, close collaboration between Design and Development functions has become the norm. In this article, I’d like to share a few ingredients which I believe are imperative to foster design-dev collaboration. Some of them could be useful for young designers who are starting their journey and want to get the best out of those sessions with developers. While other elements are more relevant to the organizations that are struggling on this front.</p><p>I can remember when I was doing my first internship in a software consulting company in 2012 or when I started working in a large corporate in 2014, my interaction with developers used to be close to zero. I got the first-hand experience of closely working with developers in a small product startup. The opportunity brought a new set of challenges as well. In design presentations, I used to get defensive when developers gave any feedback. At times, it would get difficult to convince them about the design decisions and why should it be developed as per my design recommendations. Also, that was the first time, I could closely see the mismatch between developers’ expectations from the speed and nature of design deliverables and reality. I had a hard time managing these expectations.</p><p>After that, when I joined my current company, I was better prepared for the challenges while collaborating with devs. In the last 4 years in my last 2 companies, I’ve learned a few things about how to get the best from design-dev collaboration. Let me share them with you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKAVNZJRZJnv-qzlVx9BuA.jpeg" /></figure><h3><strong>Team structure and accessibility</strong></h3><p>In MindTickle, there was a time when we were discussing whether designers should be mapped to a particular product area like developers were, or should their engagement be on a project basis. Eventually, we went with the former and it turned out to be the right decision. Due to the long term mapping with a particular product area, designers have a more focussed mission now and they have deeper knowledge about the product segment relevant to them. <strong>From the collaboration perspective, it has brought a lot more clarity for designers and developers about whom to reach out to for a particular query. </strong>This has made communication and decision making much faster for us.</p><p>Along with the right team structure, it is important to have the right culture and tools for easy accessibility to each other. In MindTickle, great camaraderie among teams, open office infrastructure, and extensive use of Slack and Zoom have enabled us to move fast towards execution. I can reach out to anyone on their desk or Slack for ad-hoc discussion, get alignment, and move forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MS-GSila36JRA2NdW1_vfg.jpeg" /></figure><h3><strong>Co-design</strong></h3><p>Not involving developers from the start of the process can result in a lot of rework because they are aware of existing behaviors, cases, and constraints which we might not be aware of. Hence along with the ad-hoc discussions, designers should also keep regular design review sessions with developers as part of their design process.</p><p>In MindTickle, PRD is shared with both developers and designers so that they can share their concerns on the requirements. Once task-flows or wireframes are done, we have a design review session(s) with backend and frontend devs. The objectives of these sessions are to identify any constraints, roadblocks, getting a fresh perspective from developers, and also help them plan their tasks by showing what the solution might look like. Then, after visual design, we have another round of review with devs including the UI development team. Here, we intend to capture any missing state or behavior along with any inconsistency from the dev’s component library. Both types of sessions have helped us to quickly bring alignment between the designer and the devs.</p><p>Here are a few ways you can be better prepared for the design reviews/demos with devs:</p><ol><li>Before explaining your design choices to them, ask multiple whys to yourself to understand why you yourself believe in that choice. Even though, lot of those choices would be based on intuition, try to see where this intuition is coming from and put it in words.</li><li>When designing new interactions or UI elements, do the research to find similar things in any other product. If you give those examples to devs, they’ll feel more confident that this can be built. Sometimes, they can also reverse engineer that example to create the interaction. Recently, we were working on a transition where the card becomes bigger with more details on hover. While showing it to dev, we also showed examples of Netflix, Amazon Prime, and Linkedin Learning which turned out to be helpful in gaining confidence from devs.</li><li>Be prepared with the next 1–2 best options of the design elements which you know might be difficult to implement. That way, you can balance experience, dev constraints, and in-time execution. Coming back to the example of card hover transition, we also thought of a particular animation for that transition. But we came to know that the animation would make it difficult to reuse the transition for other types of cards in the future. Hence, we simplified the animation to keep the reusability intact.</li></ol><blockquote><strong>Before convincing others, convince yourself first.</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqLjk9spGNUkdNuRGVQl-w.jpeg" /></figure><h3><strong>Retros</strong></h3><p>When the design quality check for a feature is conducted only after the development has been completed, it brings a couple of problems.</p><ul><li>For large projects, it becomes a huge task for the designer to go through each of the flows and edge cases to identify any gaps and it increases the likelihood of the designer missing an issue.</li><li>If the designer is coming across a gap that would require major effort, it is possible that it is too late to fix the issue.</li></ul><p>Early last year, all the product teams moved to the agile product development process. We adopted development cycles or sprints of two weeks each. Although this is mostly followed by the development team, it has been helpful for the design team as well. After each sprint, we have a retro meeting where devs demo their work from the last sprint. The designer in the project also attends these retro sessions and gets to know about any major misalignment from the intended design. Hence, these sessions ensure that we course-correct ourselves on an ongoing basis rather than towards the end of the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CGYch84I7zAJ9emAJzkN_w.jpeg" /></figure><h3><strong>Documentation</strong></h3><p>A little while back, we were working on a feature that was in the testing stage and I was also reviewing it from the design perspective. I clicked on a dropdown which was supposed to show the list of all users but to my surprise, it showed only 4 names. When I checked with the developer, he said I kept 4 values because there were only 4 in the design you shared. This reinforced an important tenet in design for me: What is obvious to you might not be obvious to someone else. Also, in this case, dev didn’t ask us before developing because he didn’t know there is an unknown. This instance solidified the value of design documentation for me.</p><blockquote><strong>There is an underlying conflict that we mostly design static screens but users experience the dynamic flows in the product.</strong></blockquote><p>We can bridge this gap to a certain extent if we provide the documentation of different user flows, UI component states, and change in behavior in different cases as well to devs. To save effort, in a lot of scenarios, you can even communicate these behaviors verbally in design review sessions. That would leave very little room for assumptions and devs will be able to develop much closer to what we intended. As a result, there would be lesser last-minute changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vad9ZDtYCuRviDlD4bEvHg.jpeg" /></figure><h3><strong>Mindset</strong></h3><p>In the early stage of my career, I used to get defensive towards the dev feedback on my design. The problem was that I wasn’t going with the right mindset in those discussions. Somehow, I used to treat any comments on the designs created by me as comments on me. I used to be afraid of being judged as a novice designer.</p><p>Later, I got the chance to work and learn from some really good developers. I started to look at feedback from developers as great inputs to further improve my designs rather than comment on me as a designer.</p><blockquote><strong>Now, my default mode is that they also want to solve user problems by building great products together.</strong></blockquote><p>Due to this small but fundamental shift in the mindset, I now have much smoother and fruitful interactions with developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q0S3v4kTRSbhWip8XfytLQ.jpeg" /></figure><h3><strong>Relationship</strong></h3><p>I am not the most extroverted guy in the room and when I joined MindTickle, I had a hard time building rapport with developers. There were times when this hampered in convincing devs to explore something for me. With time, my camaraderie with developers improved. Although that happened for me unintentionally, I’d encourage others to put conscious effort to talk with devs outside of work context as well. Knowing them personally helps you empathize with them and see their side of the world. It also helps to convince them easily to try out a few things. They will be ready to go the extra mile for you. Sometimes, those negotiations become fun as well.</p><p>That’s all, folks. I hope you find some value in this article and it helps you improve design-dev collaboration practices in your organization.</p><p>Btw, those who are curious about the illustrations I have used, I was lucky to come across this beautiful collection called <a href="https://absurd.design/">Absurd illustrations</a> and found them apt for this article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b7d91f28ba5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/elements-of-good-design-dev-collaboration-9b7d91f28ba5">Elements of good design-dev collaboration</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Delivering Voice Over Slideshow]]></title>
            <link>https://medium.com/techmindtickle/delivering-voice-over-slideshow-bbc44535cf7?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/bbc44535cf7</guid>
            <category><![CDATA[ffmpeg]]></category>
            <category><![CDATA[mapreduce]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <dc:creator><![CDATA[Vikalp Singh]]></dc:creator>
            <pubDate>Thu, 21 May 2020 10:33:48 GMT</pubDate>
            <atom:updated>2020-05-24T14:51:19.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7l6rCSoek0d_n7THQE-Bg.jpeg" /><figcaption>ImageSource : <a href="https://bunnystudio.com/blog/voice-over-powerpoint-a-powerful-guide/">BunnyStudio</a></figcaption></figure><h3>Implementing Voice over Slideshow : Fast and Portable</h3><p>Context : I will discuss about the server side tech internals of a platform which can be used to generate optimised basic Voice over Slideshows and deliver them as a video.</p><p>In the domain of content management and learning systems, Voice over Slideshow is a crucial medium for facilitating streamlined information delivery which is easy to consume. ‘Voice over Slideshow’ as the name says, is a content package where a presenter narrates while moving over a bunch of slides, to convey some information. But what’s going on under the hood? How is this managed, how is this delivered consistently across platforms? If you have thought about these questions at any point in your head after stumbling through the title of this article, you’re in the right place!</p><p>Most CMS Platforms support Voice over Slideshow and have their own way to packaging and delivering it. I’ll walk you through my way of standardising and delivering this creating a video from the presentation and voice. This simplifies delivery over a wide variety of platforms like mobile phones, tablets or web, is fast and easy to maintain. .</p><h4>Step-1 : Getting the Primitives Together</h4><p>Images and Audio Files will be your bread and butter in this technique.</p><p>But your user probably uploaded a presentation (ppt, pptx etc.), hence your first task becomes getting images out of the presentation. This is done best at host machine where the presentation is generated, using the tool itself to export each slide as in image. This is because the formats and fonts any presentation tool uses may not be standard and can cause rendering issues in a different environment. If you can ask your user to do so, you’re in a good place. Images taken as an input on your platform in lieu of a presentation, will generate better results at cost of an inferior UX.</p><p>If you can’t ask your user for images, don’t worry. Another way of getting images from a presentation is using services like <a href="https://www.box.com/">Box</a> and <a href="https://www.filestack.com/">Filestack</a>. These services offer APIs and SDKs to transform a presentation to images. I personally have achieved good results from Filestack using Box as a backup system</p><p>Yet another way is using Open Office headless. But it comes with it’s own maintenance. You can choose any of the ways mentioned above to get your images.</p><p>Coming to audio, audio for every slide can be recorded using the browser, and can be shipped to server for storage. Preserving mapping for audio track to slide number is crucial here as you’d need it to know what goes where</p><h4>Step-2 Stitching the pieces</h4><p>Here comes the sauce, FFMPEG</p><p>FFMPEG is a powerful media processing tool which can help stitch an image and audio together to form a video snippet. You’d leverage this tool to generate a final video. There are wrappers written for this tool for almost all programming languages, and even if there are no good ones for yours, you can always fire a plain old shell script from your code. There are two approaches here that you may take depending on the use case and resources available</p><ol><li>If you have a machine with high compute resources available (possibly with GPU): FFMPEG is a resource intensive tool which can also use a GPU for video processing. You can concatenate the audio files using <a href="https://trac.ffmpeg.org/wiki/Concatenate"><em>ffmpeg concat</em></a><em> </em>filter. You can use the filter again for stitching images and creating a video. { <em>ffmpeg -concat -i conf.txt -c copy output.mp4 }. </em>conf.txt will contain the mapping for images to audio duration. The time this process will take will depend on the resources made available to ffmpeg. Since you’ve a big machine, this shouldn’t be much</li><li>Multiple small machines : You can stitch every image to its audio generating small video snippets using <em>ffmpeg concat </em>command in a concurrent fashion. You then finally stitch individual videos together to generate a final video. This requires multiple small hosts to do things in parallel, state management to track the status of each process. So a fair level of complexity will be involved to track these processes and build around it. But I have something to help you around this, AWS Serverless!</li></ol><h4>Scale with AWS</h4><p>AWS offers powerful services like <a href="https://aws.amazon.com/step-functions/">AWS Step Functions</a> and <a href="https://aws.amazon.com/lambda/">AWS Lambda</a> that can be used to generate videos in the aforementioned fashion.</p><p>You will need two Lambda functions for this, one to concatenate a single image and a single audio into a video snippet, second one to stitch multiple videos into a single video. I used <a href="https://github.com/serverlesspub/ffmpeg-aws-lambda-layer">FFMPEG Lambda layers</a> to run ffmpeg on AWS Lambda. Both the functions are fairly straight forward ffmpeg commands that you need to invoke</p><p>To mix it all together, create a step function to orchestrate the two beautiful lambdas you just created above. Use <a href="https://aws.amazon.com/blogs/aws/new-step-functions-support-for-dynamic-parallelism/">Map Reduce</a> paradigm of Step functions for this. Using map reduce, you map your job into multiple jobs of one slide each to create a video snippet. Once all the mapping is done, reducer (your second lambda function) triggers. This lambda can stitch all your videos together into a single video.</p><p>Since AWS lambda can scale to great lengths, using AWS infrastructure will allow you to generate a video in (almost) constant amount of time for a very large range of slides. However, this comes with certain caveats. Since Lambda has limited disk space (512mb as of now), stitching a big video will be an issue. In my test, I found that a 30min audio snippet (256 kbps) over a 720p image generated ~2 mb of video with my desired settings. This will limits you to 125 slides (250mb) videos (equal space for final stitched video is required).</p><p>125 slides with 30min audio per slide was a fairly decent number for my use case. Although it can be increased further by streaming output to S3 directly instead of storing on disk (2x size in this case). Even if that does not suffice, AWS lambda offers good amount of RAM for a function. This can be leveraged for mounting a RAM disk and writing on this. I did not try this out, but should be possible.</p><p>I hope you will try this out and let me know any caveats you found in the comments. S this was one way of creating a Voice over Slideshow media package in a portable manner that can serve well in at scale in a production environment with performance guarantees when coupled with AWS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbc44535cf7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/delivering-voice-over-slideshow-bbc44535cf7">Delivering Voice Over Slideshow</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Here’s to the ones that we got.]]></title>
            <link>https://medium.com/techmindtickle/heres-to-the-ones-that-we-got-836d4167822d?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/836d4167822d</guid>
            <category><![CDATA[life]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[mentorship]]></category>
            <dc:creator><![CDATA[Avirup M]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 11:58:35 GMT</pubDate>
            <atom:updated>2020-03-11T11:58:35.213Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICoRAdJ-ql-Hydnrj1Hd5A.jpeg" /></figure><p>When I was 11 years old, I found out that I was stupid. And when I say stupid, I don’t mean that I did something foolish and felt stupid about it. I was really bad at mathematics. And to make things worse, I had my test results to constantly remind of how bad I was. I was ashamed of my barely passing scores. I tried to skip the days when results would be out because the teacher used to read every student’s marks out loud. I remember how I used to shrink in my seat to avoid the pitiful looks I used to get from my friends.</p><p>That was when my parents decided to enroll me in mathematics tuition. It was not like I had no math tuition before. I did. But still, I was unable to get any of those math problems right. And with that inability, came a lot of and scoldings. But this time, it was somehow different. The day I took my first class, I noticed my teacher was angry. He glared at me and said, “You know what? You’re a victim, you are a victim of your own thinking. And more importantly, you let people run over you. You are helpless and will continue to be lest you should pay attention to what other people say.” With that, we started revising our lessons together. And I was waiting for that moment where he would lose his patience and give up on me as others did. But no. He insulted me as no one else did. It seemed more like a challenge than an insult. And quite strangely, I took it quite personally. I had to prove him wrong. He was quite understanding of my slowness in the beginning. Slowly but steadily, with those delta changes Atish sir (what I used to call him by) infused in me, I was now able to work on some problems. I was never bad at mathematics anymore. Forget being just passed, I started acing the scores. My 36/100 became 90/100. And I guess, that’s when I realized the importance of a mentor in life.</p><p>That was 2011. The world was in a hurry. And I realized that to climb up the ladders, I needed a mentor. Not one, but I needed a lot of mentors. Because there were so many areas I needed to develop. One mentor just wouldn’t do.</p><h4>The Journey Ahead — MindTickle!</h4><p>Fast forward to 2018, I was in college completing my B.Tech undergraduate degree and this was when my application for a Data Analyst intern was selected for an internship at MindTickle. I was really scared at first. I remember asking the HR repeatedly regarding what I should be prepared for and if there’s any other thing that I should read about beforehand. I still remember the first day, the people walking across the hallways, busy with their office work, meetings being held in glass chambers with people working on presentations displayed on big screens, groups scribbling out problems with black markers on whiteboards and that swift typing sound coming from behind the glowing Apple logo Macbooks. Having seen that, I was soon assigned to the Analytics team and thus, started my first day at the internship. When I joined, our team was quite a small one. Keeping aside the intimidating technical discussions the team had, the team was so approachable. I was initially supposed to work with the team’s Product Manager Harshal and the Technical Product Manager, Gaurav. Right from the first day, they made me feel at ease and let my inquisitiveness do the work. I was really surprised at the friendliness the team shared. It was an atmosphere of learning mixed with humor and a bunch of too-bad-to-not-be-laughed-at jokes. Heck, they even made fun of me when I tried to call them not by their names, but with ‘Sir’.</p><p>As the days went by, I was assigned good work. This was when it all started to align. In hours of despair, whenever I needed help, I remember how, after trying my initial, l I’d rush to Harshal letting him know of the problems that came off as blockers. While my mind was chaotic with thoughts of letting the team down, fear of unable to deliver in time and being undeserving of the internship, he’d simply look at me and say, <em>“Wapas try kar. Agar nahi hua toh batana.” </em>(Try again. Let me know if you are unable to do it). At times, I was really surprised to see how cool-headed he was. Whenever I had problems relating to the data, I’d feel stupid about going and asking Gaurav for clarifications. But not only did he make those things clear for me, but he did it with a smile on his face! And not to mention, the shower of <em>silly </em>questions I had in my mind. Every time, these two would astound me with their patience.</p><p>I still remember, with the project delivery days getting nearer, I would become more and more anxious. After all, it was a big release for a big client. To be honest, my entire internship was dedicated to delivering this project. And I guess we all have that feeling when even if you do everything right, you can still feel those butterflies inside your stomach. <em>“Did I do sufficiently?”, “Will this work?”, “What if it breaks during the client demo?” </em>Where it should have been I who had to convince them it would work fine, they were the ones to calm my nerves down. Having said that, everything went well and I was offered a full-time position at MindTickle. That day I was not only happy that I got the offer, but also that I found my mentors, the people, without whom this would not have been possible.</p><h4>From being Mentors and beyond…</h4><p>When I accepted the full-time offer at MindTickle, it was not only my love for the work over here but was also because of these amazing people I came across. A mentor not only takes the responsibility of mentoring and guiding you but he also silently takes up the role of a protector and guide. He’d be there not only when you need him to be but also during the times you fail to see reason. With projects after projects, you slowly develop a personal bond with the person and unknowingly so, start developing similar thinking patterns. And having that, in such an early stage of career, is simply fascinating! With time, I got to work with others in my team, Harshal Patil (we just call him Patil), Puneet and slowly learned a lot.</p><p>I believe the mentorship cannot be just limited to a person, but across an entire team, or, more broadly, across an entire organization. There is a certain joy in seeing everything running so harmoniously and effortlessly, just exactly how they should be. And you can’t see that from afar, you have to move in close and observe it yourself. And once you see it with your own eyes, you’d have this crazy desire to be a part of it. And mentors have these immense power and making you feel like you own it. Like it’s yours to take and that you deserve it. They not only infuse that confidence in yourself but also those qualities that you once admired in them and thought that you lacked. It’s not just the quality of work. It’s much much more if you think about it. Work is temporary, but these things? They are permanent.</p><p>It’s been almost 2 years since I joined MindTickle<em>. </em>MindTickle and I have come a long way since then. It has been nothing but a journey to the top and all of this was possible because of the people, the Ticklers, who made it happen!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=836d4167822d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/heres-to-the-ones-that-we-got-836d4167822d">Here’s to the ones that we got.</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Settling In MindTickle and the Importance of Social Circles]]></title>
            <link>https://medium.com/techmindtickle/settling-in-mindtickle-and-the-importance-of-social-circles-9d49f9ded97f?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/9d49f9ded97f</guid>
            <category><![CDATA[social]]></category>
            <category><![CDATA[workplace]]></category>
            <category><![CDATA[new-city]]></category>
            <category><![CDATA[connection]]></category>
            <category><![CDATA[workplace-culture]]></category>
            <dc:creator><![CDATA[Anjali Lal]]></dc:creator>
            <pubDate>Wed, 11 Mar 2020 10:54:15 GMT</pubDate>
            <atom:updated>2020-03-11T10:54:15.419Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Settling In MindTickle and Social Circles</em></strong></h3><p>In the last 1.5 years, I have shifted cities thrice and it would be an understatement to say that it is tiresome because what it really is arduous and exasperating. You are getting to know people around you and trying to form your circle again. You have to re-calibrate all your schedules, your lifestyle, your habits, your routines, your traveling mode, your house and most importantly <em>your social circle </em>and<em> </em>I am not the only one- at MindTickle, most of my colleagues are people who have shifted from other cities to be in this beautiful city of Pune. And as thankful MindTickle is to them for making this huge shift in their lives, we do recognise the uphill task of building a new life in a new city.</p><p>The traditional office model dictates that one must work hard in the office and enjoy their lives and meet their friends post-work hours but as models go, it is an outdated one which does not keep up with our times. We at MindTickle truly believe that our friendships play a key role in fostering a sense of purpose at our office and must be just as much a part of the culture as any other important revenue target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BJmHSj_Q-KhzRQ0x1Odrqw.jpeg" /><figcaption>Sip and Paint in MindTickle Pune, India.</figcaption></figure><p>We, humans, are social beings and crave connection and we spend about one-third of our life and half of our waking life at office. A sense of belonging is an internal motivator helping employees. Employees with work friends or connections tend to be more engaged. These work relations, in turn, build a strong company culture helping nurture respect, loyalty and trust. These social cohesions also drive creativity and collaboration. But it is not just about performance, these employees also tend to lead a healthier life. According to Mayo Clinic”<em> Adults with strong social support have a reduced risk of many significant health problems, including depression, high blood pressure, and an unhealthy body mass index. All of which translates to less stress and increased happiness.”</em></p><p>If only it was possible that good things came to life on their realization of being good, life would be much simpler. Unfortunately forming social connections is not the easiest of tasks for people. Some people are naturally hesitant while others would not want to overstep any boundaries. <br>This is what we recognized at MindTickle. The name MindTickle is all about solving problems while having fun and we realize that genuine friendships are the key to happiness at work from being excited about coming to the office, discussing problems, celebrating success to supporting each other when needed. We have not only taken conscious steps to nurture these relations but rather we have built our culture around it.</p><p>WE LET THE CONVERSATIONS FLOW</p><p>We have an open office since our inception. Hot desks and no cabins help employees connect with each other better. Employees collaborate with each other more when they just sit across the same room and can get up and run their ideas with others in real-time. This also leads to much more ‘bumping into each other’ which creates new conversations around a multitude of topics like food, hobbies. These conversations are often what form the work friendships at the office and the groups which you will see often hanging out after office hours to trek, cycle near Singhad Fort or to get some brunch and the next day being back at office to make new plans. This has led to the creation of many interest groups in our office. People with similar hobbies have created their own groups be it cricket, football or music. Music collaboration has been pretty high at MindTickle which did not just bring together people to jam but also had employees creating a band which has composed its own songs. Do you know where they practice? In the Music Room in the office which was made for people to bond over music!</p><p>WE CONNECT OVER PASSIONS</p><p>We have also created what would formally be called ‘social spots’ to encourage employees to engage in conversations. One is through TGILF. ThankGod It’s Last Friday are employee-driven last Fridays wherein employees design an engagement activity or pretty much anything they want. Employees often try to read the pulse of the company to plan out the engagement in the last Friday Chaupal. Chaupals are our bi-weekly company gathering wherein all our teams update each other on all that is relevant. A particular one that comes to mind is the Kavi Sammelan(Poetry sessions) that we have had at our office which not only led to our employees reciting the poems they wrote, but also connecting on the emotions those poems stood for and becoming friends with fellow poets!</p><p>WE ARE IN THIS TOGETHER</p><p>House system (Yes, Harry Potter inspired). We decided to have House Systems for all our events. People often focus too much on self-nominated participation and underestimate the power of healthy competition. <br>Healthy competitions create us against them attitude which helps the team members bond. Team members who may not have interacted otherwise are busy coming up with strategies together to win various games. If you have ever been on a team you know, being on the same team bonds like nothing else.</p><p>As we are growing, we acknowledge that these conversations get tougher with many employees joining our office every week but it just means that social conversations become even more imperative, need a conscious effort and yet be employee-driven.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d49f9ded97f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/settling-in-mindtickle-and-the-importance-of-social-circles-9d49f9ded97f">Settling In MindTickle and the Importance of Social Circles</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Product Management 2.0:]]></title>
            <link>https://medium.com/techmindtickle/product-management-2-0-807ad337891?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/807ad337891</guid>
            <category><![CDATA[enterprise]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[product]]></category>
            <dc:creator><![CDATA[Aseem Khare]]></dc:creator>
            <pubDate>Wed, 13 Nov 2019 06:21:57 GMT</pubDate>
            <atom:updated>2019-11-13T17:16:00.810Z</atom:updated>
            <content:encoded><![CDATA[<h3>Product Management 2.0: Why is Product Management for a 0 to 1 Enterprise SaaS platform so complex &amp; challenging!</h3><p>I have worked in numerous B2C &amp; B2B businesses in my career journey. Having worked as the CEO &amp; driving the product at a couple of large 300 member+ B2C &amp; B2B businesses (Taskbob &amp; Adonis), leading the business &amp; product of a 10 mn$ funded product led B2C business (DocsApp), and now, driving the product of a 80 mn$ funded 0 to 1 Enterprise SaaS platform, I have had the opportunity to reflect on Product Management Skills required in B2C &amp; B2B (SaaS) businesses. While there are a lot of similarities, I have found that the Product Management differs in B2C (specially product led businesses) vs B2B (specifically Enterprise SaaS) in subtle ways. Further, I have realised that the <strong>Product Management for a 0 to 1 Enterprise SaaS platform is indeed a beast in itself!</strong></p><p>Over the course of this blog, I will take you through this step by step. Let’s first talk about a generic PM role for a B2C product led business, then understand the differences in an Enterprise SaaS platform &amp; finally talk about a generic PM role for a 0 to 1 Enterprise SaaS platform.</p><h3><strong>But wait! Before that, What exactly is a 0 to 1 SaaS platform?</strong></h3><p>A SaaS platform, which along with its competition has managed to establish new category in itself is a 0 to 1 SaaS platform or a ‘Category Creator’ SaaS platform.</p><p>For e.g. in the recent past, new trends in consumer market have resulted in innovation around how businesses approach their consumer outreach. This has resulted in a bunch of new categories getting created, <strong>e.g. Hubspot for Marketing Automation, or Hootsuite for social media marketing. </strong>We at <a href="http://www.mindtickle.com/">MindTickle</a> are building a new category of Sales Readiness &amp; Enablement.</p><p>Ok now that we understand what 0 to 1 SaaS platforms are, let’s understand the product manager’s role at B2C product led business, Enterprise SaaS platform &amp; a 0 to 1 Enterprise SaaS platform.</p><h3><strong>Product Management in a B2C product-led business</strong></h3><p>At the core, a B2C business aims to solve for massive growth in revenue drivers while keeping its customers satisfied.</p><p>For a product led business, it means creating new high growth channels for superlative revenue potential. Further, in regular B2C businesses, once product market is achieved &amp; direction is streamlined — speed is a key driver!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*1OLA7R0hqm2caCSwZ4Sv4w.png" /></figure><p>Thus, A great B2C Product Manager understands,</p><ul><li>why &amp; where to run the experiments,</li><li>persistently runs many experiments with the team,</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*_AzHw5xPe-U8dPECgdcwQA.gif" /></figure><ul><li>And ensures high success rate in those</li></ul><p>To be able to do that a great B2C PMs should broadly have</p><ul><li>Good <strong>first principles thinking, </strong>analytical skills — which help them decide why &amp; where to run experiments,</li><li>ability to understand people &amp; <strong>drive the team persistently </strong>as well as ability to adapt to change swiftly &amp; <strong>execute fast</strong>,<strong> </strong>which together help them to run many experiments, and</li><li><strong>Deep customer empathy</strong> to understand customer’s needs &amp; drivers helping them to have a higher success rate in the experiments</li></ul><h3><strong>Product Management in an Enterprise SaaS platform</strong></h3><p>An Enterprise SaaS business has some other additional complexities</p><ol><li>A few customers drive a big chunk of the revenue</li><li>Big digital risk around chunks of revenue flip month on month or year on year (Subscription based model for the customers leading to a risk of renewal year on year)</li><li>Buyer being 1 persona &amp; users of the platform being various personas (Complexities in use-cases and user behavior since, each persona operates the same product differently)</li></ol><p>In summary, some extra challenges pop up -</p><ol><li><strong>Prioritization of features is more complex</strong> — given Revenue, # of users, Process blockers, Experiments have to be balanced well</li><li><strong>Stakeholder Management (Sales, Customer Success, Marketing) becomes a critical need.</strong> Further, the return from the platform (usefulness &amp; satisfaction) gets associated with higher digital risk, i.e. small mistakes could lead to big revenue churn and hence the bar for quality is higher</li><li>Solving for multiple personas makes Product focus difficult. <strong>For a lot of SaaS organizations, they only get a chance to communicate with their buyer &amp; not the end user.</strong> In such a case, understanding and solving for every persona’s needs clearly (or with priority) becomes important</li></ol><p>As a result, A great Product Manager for an Enterprise SaaS platform needs the below additional qualities -</p><ul><li>Significant Communication Skills &amp; <strong>Stakeholder Management</strong></li><li>Maintaining high quality, <strong>attention to details</strong> &amp; having 0 tolerance for loopholes is important</li><li>Being able to differentiate &amp; clearly detail out the <strong>requirements for various personas</strong> becomes key</li></ul><p>While a good B2C PM needs to be <strong>focussed &amp; fast &amp; do a lot of experimentation</strong> around the aligned direction, Enterprise SaaS <strong>PM needs to create that balance</strong> between customer / stakeholder requests &amp; the fast paced strategic vision execution;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*wOMnm0tMsftij_MQmBD05g.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/766/1*RA_MFVg8UItUy_pIBOSBpQ.png" /></figure><h3><strong>Product Management in 0 to 1 Enterprise SaaS platform</strong></h3><p>A 0 to 1 SaaS platform for enterprises has a set of extra complexities! A 0 to 1 Enterprise Platform needs to consistently build and drive a compelling point of view. Also, it is key to shape the category along the way. Even usual non-Enterprise SaaS disruptors such as Zoom or Slack, whose Go To Market is bottom up from end users, don’t face complexity like this.</p><p>Together the following challenges exist:</p><ol><li>Along with managing existing customers &amp; driving new customers, it is key to rapidly innovate. <strong>Innovation bucket is significantly higher, as are customer requests, competitive catch ups</strong></li><li><strong>Apart from understanding customer need &amp; looking at competition, one major new element is understanding &amp; even defining market direction.</strong> Being a 0 to 1 for a short period is one thing, but maintaining “thought leadership” is another ball game altogether</li><li><strong>Building product for long sales &amp; delivery cycles, especially true for platforms for enterprise businesses</strong>, with slow feedback of success is demotivating</li></ol><p>As a result, some new challenges pop up -</p><ol><li><strong>Prioritization &amp; Roadmap planning is a nightmare</strong>. The number of perspectives that the product manager needs to consider is significantly large</li><li><strong>Ability to map &amp; define market direction amidst low data is challenging</strong></li><li><strong>Given long sales &amp; delivery cycles in Enterprise, the ability to motivate &amp; excite the customers, stakeholders &amp; team continuously around your hypothesis becomes key</strong></li></ol><p>As a result, A great Product Manager for a 0 to 1 Enterprise SaaS platform needs the below additional qualities -</p><ul><li>Ability to <strong>drive clarity amidst the chaos</strong> &amp; ambiguity often.</li><li>Ability to build a vision &amp; a story and being able to <strong>sell that vision &amp; story to all stakeholders</strong> also becomes key.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*-wt9HbKGcNFRMARO4QMmog.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/1*wmNHiccauX6mweSDdrOkaw.gif" /></figure><p>A 0 to 1 Enterprise SaaS platform is like a person solving this problem. She needs to first visualise that maybe something can solve this problem better (a traffic light), then needs to sell the vision of it &amp; then drive a team to build it while every car is still driving around :)</p><h3><strong>Summary</strong></h3><p>It would be an understatement to say that the work of a Product Management in 0–1 Enterprise SaaS platform is fairly complex. While at the core, B2C Product Managers need to think clearly, be fast paced &amp; be good at understanding &amp; working with people; SaaS platform PMs need to balance speed with <strong>superior stakeholder management. </strong>0 to 1 SaaS Platform PMs must top the regular SaaS PM’s role with an <strong>ability to build a point of view amidst chaos &amp; rally the team in that chaos, </strong>thus making the role fairly complex &amp; challenging.</p><h3>Concept of AND</h3><p>I read a book recently called “Build to Last” in which there was a concept of “And” &amp; Why is the concept of “And” so important for an organization to be successful. I believe a PM’s role in a 0 to 1 Enterprise SaaS platform is much like that -</p><p><strong><em>The PM must be able to</em></strong></p><ul><li><strong><em>Zoom in (Execution, Detail oriented) AND Zoom out (Sell with a story)</em></strong></li><li><strong><em>Drive clarity with Data AND without Data</em></strong></li><li><strong><em>Manage customer needs AND keep innovating</em></strong></li><li><strong><em>Communicate with engineers AND with Sales, Customer Success, Marketing</em></strong></li><li><strong><em>Build with Speed AND ensure Quality</em></strong></li></ul><p>Drawing parallel to Isaiah Berlin’s ‘The Hedgehog &amp; the fox’, I believe, This PM should have the ability to combine, the hedgehog’s sense of direction as well as the fox’s sensitivity to surroundings, while retaining the ability to function. And hence, I think Product Management for a 0 to 1 Enterprise SaaS platform is so unique &amp; complex.</p><p>Thankfully, we <strong>at MindTickle</strong>, have a few great PMs who have helped us reach here in this journey. Going forward, we are looking for many more such great PMs who could partner with us in this journey of building a whole category in itself for Enterprise customers.</p><p>Please <strong>tag your friends</strong> who you think could fit the bill shared above. If we select them as Senior PM (or PM) and they join us, an <strong>iPhone 11 Pro (or iPhone 11) </strong>as a gift for you is guaranteed or you could directly apply <a href="https://www.mindtickle.com/careers/">here</a></p><h3><strong>Appendix:</strong></h3><p>To put it all together, the list of skills needed for a 0 to 1 SaaS Platform are:</p><p><strong>Business Leadership</strong></p><p>1. Understanding Market Direction, Trends, Ecosystem</p><p>2. Understanding Competitive Landscape</p><p>3. Understanding Customer Needs &amp; Customer Expectations</p><p>4. Understanding &amp; Aligning of Business Goals &amp; overall expectations : Connecting the dots &amp; Aligning with key stakeholders (customers, leadership, board) to derive Product Strategy, Positioning &amp; Plan to meet the business goals</p><p><strong>Product Leade</strong>r<strong>ship</strong></p><p>5. Presentation &amp; StoryTelling of Problems &amp; Solutions (Zoom out, Zoom in)</p><p>6. Leadership Skills (Persuasion, Communication &amp; Driving the team)</p><p><strong>Planning &amp; Execution</strong></p><p>7. Strategic Thinking &amp; First Principles Problem Solving Skills</p><p>a) Customer Experience, Attention to detail and scoping out things</p><p>b) Delight/Design sense</p><p>c) Deep Technical understanding</p><p>8. Being Highly Metric Driven &amp; Prioritizing well</p><p>9. Fast Speed of Execution (MVP, Lean)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=807ad337891" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/product-management-2-0-807ad337891">Product Management 2.0:</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Culture- our competitive weapon in war of talent]]></title>
            <link>https://medium.com/techmindtickle/culture-our-competitive-weapon-in-war-of-talent-71abcd79d0ac?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/71abcd79d0ac</guid>
            <category><![CDATA[talent]]></category>
            <category><![CDATA[mindtickle]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[people]]></category>
            <category><![CDATA[culture]]></category>
            <dc:creator><![CDATA[Rajneesh Malik]]></dc:creator>
            <pubDate>Tue, 27 Aug 2019 05:25:52 GMT</pubDate>
            <atom:updated>2019-08-21T13:07:28.031Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4GwSLuPXPG17w4z-Hd6_pg.png" /></figure><p>Evolution of human race is ongoing , we may or may not change in our physical appearance but we are constantly changing in other areas like the way we do work, managing relationships, lifestyle and so on. The time has changed and so has our working style, job has become more demanding, competition is high, stress levels are at peak, it’s no more a 9–5 job (thanks to the internet) and we end up spending most of our time at our work place with our office colleagues. Our expectations at work have changed, and it no longer revolves around just monetary considerations, it now includes, growth, challenges, the impact of our work and most importantly, we need to feel connected to the values of the company. Yet, after seeing so much of evolution around, many organisations are still running in a way which was more relevant years ago.</p><p>There are a handful of organisations( Google, Netflix among others) which have set an example in front of other organisations, of how important is the role of “culture” in a successful business setup and how it is evolving over time. More often than not, most companies ignore it and that MAY NOT be due to the belief system but rather due to low priority and in some cases, it’s adopted the way its been done at other places.</p><p>In my limited 15 years of experience, I’ve not seen the same culture in all the organisations and the reality is; it’s NOT possible to have the same kind of culture of what you have experienced/implemented in previous companies as all organisations are different in their DNA, their businesses, product, market, customers, talent, belief system. Everything is different. Still, a majority of companies try to copy &amp; paste the same culture which has worked for others, without even giving it a genuine deep thought.</p><p>For the sake of ‘creating culture’, some organisations introduce ping pong table, or a PS4 for employee’s entertainment but when the same employee spends time playing on the ping pong table or trying their hands with PS4, they start blaming those things for downfall in the productivity and performance of employees . This action directly points towards “the culture” the organisation believes and wants to grow. At one end you want your employees to de-stress themselves (as you have seen some other companies doing it) but you don’t personally believe in it. This culture is definitely harmful in the long term for organisations. And sooner or later you regret your decision of modifying your culture.</p><p>Culture is not something which you bring in from outside, culture has always been in the company from day one, and it’s up to you to keep nurturing it based on how you value your employee’s opinion, learning, growth, their personal &amp; professional development and how you see employees being part of the long journey with you.</p><p>The way MindTickle has consciously framed its culture is STRONGLY on the values we completely believe in and it comes with a strong buy-in from all employees; that’s the 1st and foremost important step we took. Our words and action always align. We believe in being authentic, transparent and do things with right intention, and we know that we have to keep improvising and be the better version of ourselves. In fact our name MindTickle was chosen considering Mind- (Highly Smart People), Tickle- (having fun).</p><p>Communication, right information sharing and listening to our employees helps. The key is if we share information transparently and keep everyone updated on what is happening and what’s the plan to go ahead and fix things, employees have always appreciated and continue to appreciate it and if there is something that employees do not agree with they always let us know which helps us come to solutions which all of us believe in.</p><p>Being owner of work is the crux of our culture, it gives the individual the power of making decisions and be responsible for that decision. Everyone can feel the impact of their work at MindTickle.</p><p>MindTickle is unique in its product and a category creator in our space, and the same uniqueness is also applied in our “culture” and “people first” ideology.</p><p>In this tug of war for talent, we are fighting with our primary weapon of “culture” and recently it helped us in achieving some recognition towards it. We are in the <a href="https://www.greatplacetowork.in/great/50-best-companies.php">list </a>of Top 50(rank 47) Great Place to Work in Mid Size Organisation, India and one of the Top 50( rank 29) companies to work for in Cloud Computing by Battery Ventures, US.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Im1Cv7Ka1nkztu4muSwrlg.jpeg" /><figcaption>MindTickle was recognised at one of the top companies to work for in Cloud Computing by Nasdaq- 2019</figcaption></figure><p>This is just the beginning and we have a long way to go to scale our “culture” but we are confident of doing it in the right direction as the foundation of our culture is built with right intention &amp; authenticity. And to make sure we scale the culture in the right way an utter carefulness goes in hiring and the ones who contribute to our culture rather than being just a fit for our culture are chosen to be a MindTickler.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71abcd79d0ac" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/culture-our-competitive-weapon-in-war-of-talent-71abcd79d0ac">Culture- our competitive weapon in war of talent</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Intermittent delays in Kubernetes]]></title>
            <link>https://medium.com/techmindtickle/intermittent-delays-in-kubernetes-e9de8239e2fa?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/e9de8239e2fa</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[libc]]></category>
            <category><![CDATA[grpc]]></category>
            <category><![CDATA[networking]]></category>
            <category><![CDATA[kubernetes]]></category>
            <dc:creator><![CDATA[Monica Gangwar]]></dc:creator>
            <pubDate>Mon, 12 Aug 2019 12:46:54 GMT</pubDate>
            <atom:updated>2019-11-05T13:08:36.059Z</atom:updated>
            <content:encoded><![CDATA[<p>We moved most of our production workload to Kubernetes and were relishing the advantages it was offering us by keeping a lot of things abstracted and not requiring any manual intervention from us … But no sooner, all these abstractions became problematic when the whole <strong>network stack of our cluster went down</strong>. We were left with no other option than to <strong>create a new cluster and migrate all our applications to it.</strong></p><p>With this cluster wide outage, our whole infrastructure came into scrutiny and we were left clueless as to why this happened, this was when we decided to take a deep dive into k8s networking and tried to understand each and every abstracted layer from pod-pod networking using CNIs to service networking using Iptables.</p><p>Also, during this time we noticed intermittent delays in pod to pod communication and intermittent overall slowness in our web application.</p><h3>Problem statement</h3><p>How to understand and avoid intermittent delays usually occurring in multiple of 5 seconds in pod to pod communication</p><blockquote>Pod A sent request at <strong><em>x time</em></strong> but the request reached Pod B at <strong><em>x + 5s, x + 10s or x + 15s </em></strong>and the overall request took a lot longer than expected.</blockquote><h3>First step first</h3><p>We noticed that delays are in the multiple of 5 seconds and so we found this <a href="https://blog.quentin-machu.fr/2018/06/24/5-15s-dns-lookups-on-kubernetes/">extremely helpful article</a>, which explains that this delay in pod-pod communication is due to <strong>DNS lookups</strong>.</p><p><strong>libc library</strong> in our linux kernel (or <strong>musl</strong> in alpine) which is responsible for dns resolutions sends out dns lookups for A(ipv4 lookup) and AAAA(ipv6 lookup) record on the <strong>same port</strong>. A record is returned almost immediately whereas AAAA record timeouts after some while, causing the library to think that overall lookup has timedout. This causes libc to <strong>retry after waiting for 5 seconds</strong>. Thus causing dns resolution to be delayed by multiple of 5 seconds.</p><p>This delay is common in kernels where DNAT or SNAT translations are taking place and is caused by a <strong>race condition in conntrack</strong>, for understanding it in more depth follow <a href="https://www.weave.works/blog/racy-conntrack-and-dns-lookup-timeouts">this blog</a></p><h3>Resolution</h3><h4>Linux</h4><p>With the help of article mentioned above, we simply added single-request-reopen in our pod dns config and voila! our intermittent delays were gone. Just to be sure, we noticed tcpdump output and saw that for dns lookups — <strong>A and AAAA record lookups were going via different ports</strong>.</p><h4>Alpine</h4><p>We didn’t change anything for alpine images as most of our applications are in linux. Although you can follow <a href="https://blog.quentin-machu.fr/2018/06/24/5-15s-dns-lookups-on-kubernetes/">this blog</a> if you notice intermittent delays in alpine images</p><h4>GRPC</h4><p>For grpc applications we were still noticing DEADLINE_EXCEEDED errors when the timeout was set to 3 seconds. Dns lookup taking more than 3 seconds is a lot. So, we did these following steps:</p><ol><li>We added single-request-reopen to the pod spec and captured tcpdump output. We saw that lookups for A and AAAA records were going via same port</li><li>We figured out that for grpc, default dns resolver is ares (if it’s available) and grpc was not using libc for it’s resolution hence our setting was not being taken into consideration</li><li>Lucky for us, this dns resolver can be easily overridden by setting this variable GRPC_DNS_RESOLVER=native . We added this to our Dockerfiles and lo and behold! problem solved. We captured the tcpdump output and saw that lookups for A and AAAA records were going via different ports.</li></ol><h3>Conclusion</h3><p>To avoid intermittent delays of 5,10,15 seconds or DEADLINE_EXCEEDED error in grpc applications:</p><ol><li>For linux add single-request-reopen to your deployment spec</li></ol><pre>spec.template.spec:<br>  dnsConfig:<br>        options:<br>        - name: single-request-reopen</pre><p>2. For GRPC application in linux — add single-request-reopen in your deployment spec as mentioned above and set the following variable GRPC_DNS_RESOLVER=native</p><p>3. For alpine follow <a href="https://blog.quentin-machu.fr/2018/06/24/5-15s-dns-lookups-on-kubernetes/?source=post_page---------------------------">this blog.</a></p><p><em>PS: You can check tcpdump output using the following command:</em></p><pre>tcpdump port 53</pre><p>Output when lookups for A and AAAA records are going via same port with retry after 5 second</p><pre>18:09:09.252168 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 10118+ AAAA? sample-svc.prod.svc.cluster.local.prod.svc.cluster.local. (84)<br>18:09:09.252433 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 32141+ A? sample-svc.prod.svc.cluster.local.prod.svc.cluster.local. (84)<br>18:09:09.277656 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 10118 NXDomain*- 0/1/0 (177)<br>18:09:09.277731 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 64566+ AAAA? sample-svc.prod.svc.cluster.local.svc.cluster.local. (79)<br>18:09:09.279051 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 64566 NXDomain*- 0/1/0 (172)<br>18:09:09.279091 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 35772+ AAAA? sample-svc.prod.svc.cluster.local.cluster.local. (75)<br>18:09:09.280330 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 35772 NXDomain*- 0/1/0 (168)<br>18:09:09.280374 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 50317+ AAAA? sample-svc.prod.svc.cluster.local.ap-southeast-1.compute.internal. (93)<br>18:09:09.283045 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 50317 NXDomain 0/0/0 (93)<br>18:09:09.283088 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 50250+ AAAA? sample-svc.prod.svc.cluster.local. (61)<br>18:09:09.284291 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 50250*- 0/1/0 (154)<br>18:09:09.934566 IP tcpdump-1565114940-8h4g5.33044 &gt; kube-dns.kube-system.svc.cluster.local.domain: 28773+ PTR? 10.0.64.100.in-addr.arpa. (42)<br>18:09:09.937109 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.33044: 28773*- 1/0/0 PTR kube-dns.kube-system.svc.cluster.local. (118)<br>18:09:15.251741 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 32141+ A? sample-svc.prod.svc.cluster.local.prod.svc.cluster.local. (84)<br>18:09:15.253162 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 32141 NXDomain*- 0/1/0 (177)<br>18:09:15.253196 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 25412+ A? sample-svc.prod.svc.cluster.local.svc.cluster.local. (79)<br>18:09:15.254387 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 25412 NXDomain*- 0/1/0 (172)<br>18:09:15.254457 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 12261+ A? sample-svc.prod.svc.cluster.local.cluster.local. (75)<br>18:09:15.255646 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 12261 NXDomain*- 0/1/0 (168)<br>18:09:15.255668 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 23917+ A? sample-svc.prod.svc.cluster.local.ap-southeast-1.compute.internal. (93)<br>18:09:15.258122 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 23917 NXDomain 0/0/0 (93)<br>18:09:15.258151 IP tcpdump-1565114940-8h4g5.36319 &gt; kube-dns.kube-system.svc.cluster.local.domain: 24648+ A? sample-svc.prod.svc.cluster.local. (61)<br>18:09:15.259403 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565114940-8h4g5.36319: 24648*- 1/0/0 A 100.71.57.175 (120)</pre><p>Output when lookups for A and AAAA records are going via different ports</p><pre>18:14:06.742196 IP tcpdump-1565115240-2sgg9.55797 &gt; kube-dns.kube-system.svc.cluster.local.domain: 10308+ A? sample-svc.prod.svc.cluster.local.prod.svc.cluster.local. (84)<br>18:14:06.748334 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.55797: 10308 NXDomain*- 0/1/0 (177)<br>18:14:06.834523 IP tcpdump-1565115240-2sgg9.43231 &gt; kube-dns.kube-system.svc.cluster.local.domain: 49744+ AAAA? sample-svc.prod.svc.cluster.local.prod.svc.cluster.local. (84)<br>18:14:06.837492 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.43231: 49744 NXDomain*- 0/1/0 (177)<br>18:14:06.837573 IP tcpdump-1565115240-2sgg9.49928 &gt; kube-dns.kube-system.svc.cluster.local.domain: 65223+ A? sample-svc.prod.svc.cluster.local.svc.cluster.local. (79)<br>18:14:06.842136 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.49928: 65223 NXDomain*- 0/1/0 (172)<br>18:14:06.842197 IP tcpdump-1565115240-2sgg9.51476 &gt; kube-dns.kube-system.svc.cluster.local.domain: 13264+ AAAA? sample-svc.prod.svc.cluster.local.svc.cluster.local. (79)<br>18:14:06.848219 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.51476: 13264 NXDomain*- 0/1/0 (172)<br>18:14:06.848287 IP tcpdump-1565115240-2sgg9.56841 &gt; kube-dns.kube-system.svc.cluster.local.domain: 8644+ A? sample-svc.prod.svc.cluster.local.cluster.local. (75)<br>18:14:06.853486 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.56841: 8644 NXDomain*- 0/1/0 (168)<br>18:14:06.853545 IP tcpdump-1565115240-2sgg9.36702 &gt; kube-dns.kube-system.svc.cluster.local.domain: 2763+ AAAA? sample-svc.prod.svc.cluster.local.cluster.local. (75)<br>18:14:06.855099 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.36702: 2763 NXDomain*- 0/1/0 (168)<br>18:14:06.855164 IP tcpdump-1565115240-2sgg9.45388 &gt; kube-dns.kube-system.svc.cluster.local.domain: 39997+ A? sample-svc.prod.svc.cluster.local.ap-southeast-1.compute.internal. (93)<br>18:14:06.858541 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.45388: 39997 NXDomain 0/0/0 (93)<br>18:14:06.858596 IP tcpdump-1565115240-2sgg9.33666 &gt; kube-dns.kube-system.svc.cluster.local.domain: 37956+ AAAA? sample-svc.prod.svc.cluster.local.ap-southeast-1.compute.internal. (93)<br>18:14:06.865379 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.33666: 37956 NXDomain 0/0/0 (93)<br>18:14:06.865447 IP tcpdump-1565115240-2sgg9.37795 &gt; kube-dns.kube-system.svc.cluster.local.domain: 37403+ A? sample-svc.prod.svc.cluster.local. (61)<br>18:14:06.866815 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.37795: 37403*- 1/0/0 A 100.71.57.175 (120)<br>18:14:06.866862 IP tcpdump-1565115240-2sgg9.35006 &gt; kube-dns.kube-system.svc.cluster.local.domain: 65057+ AAAA? sample-svc.prod.svc.cluster.local. (61)<br>18:14:06.868134 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.35006: 65057*- 0/1/0 (154)<br>18:14:07.039085 IP tcpdump-1565115240-2sgg9.49073 &gt; kube-dns.kube-system.svc.cluster.local.domain: 18241+ PTR? 10.0.64.100.in-addr.arpa. (42)<br>18:14:07.040476 IP kube-dns.kube-system.svc.cluster.local.domain &gt; tcpdump-1565115240-2sgg9.49073: 18241*- 1/0/0 PTR kube-dns.kube-system.svc.cluster.local. (118)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e9de8239e2fa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/intermittent-delays-in-kubernetes-e9de8239e2fa">Intermittent delays in Kubernetes</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JSON Schema Validation in event-driven/REST services]]></title>
            <link>https://medium.com/techmindtickle/https-medium-com-techmindtickle-json-schema-validation-in-event-driven-rest-services-2778f46eadc6?source=rss----9c96438756ee---4</link>
            <guid isPermaLink="false">https://medium.com/p/2778f46eadc6</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[rest-api]]></category>
            <category><![CDATA[event-sourcing]]></category>
            <category><![CDATA[json-schema]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Anshit Chaudhary]]></dc:creator>
            <pubDate>Wed, 26 Jun 2019 16:38:05 GMT</pubDate>
            <atom:updated>2019-06-26T16:38:05.502Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cookbook for JSON data validation</h3><p>If you’re a developer, the odds that you’ve not used JSON formatted data are negligible. It is a lightweight and human-readable format that is widely used for storing and transporting data. JSON originally was intended to be a part of JavaScript, but it is a language-independent format. Today, code for parsing and generating JSON data is available in almost all of the programming languages out-of-the-box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2P2MooABBo4WuBNWb0d1OQ.png" /><figcaption>Number of questions on stack overflow can be used as proxy for comparing popular data-interchange formats.</figcaption></figure><h4>Why validate JSON data?</h4><p>While JSON formatted data is easy to generate, it is notorious for being too flexible. As long as the data confines to the JSON syntax, things are merry for generator and parser. But it might not be so for the developer.</p><p>Let’s take an example to better illustrate the problem. For the sake of simplicity, I’ll be using python to share the code snippets. In this scenario, frontend is responsible for sending a message to backend for registering a user. This message will contain a user object as shown below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b17c43aae58fc78e955526c9802eb40a/href">https://medium.com/media/b17c43aae58fc78e955526c9802eb40a/href</a></iframe><p>Now, what happens if frontend does not send the property address? If name is of type integer? If email is not in a proper format? Such situations are often encountered in practical applications. As the receiving side (backend here) has no idea about such malformed objects, we are forced to write ugly code to handle these cases. Also, at edge cases, such data passes through the checks and affects other components of the system. And debugging issues in these cases is a tough puzzle.</p><p>These situations often occur because of obscure contract between the sender and receiver. Stricter the contract, lesser are the number of checks needed in the receiving end. In an ideal system, the sender and the receiver should have a crisp contract for the data transfer object, and this contract should be used by: 1. the sender to validate the outgoing data 2. the receiver to validate the incoming data.</p><p>Now, let’s get to how to define the contract. This is where JSON schema comes to the rescue. In the coming sections, we’ll be exploring JSON schema and it’s usage in validating data.</p><h4>What is JSON schema?</h4><p><strong>JSON Schema</strong> is a specification for JSON based format for defining the structure of JSON data. It provides a clear human- and machine- readable documentation to describe your data. The most important benefit of this schema is to validate the data.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/99d1b9b5b6b12c8bad90c1496bada2a5/href">https://medium.com/media/99d1b9b5b6b12c8bad90c1496bada2a5/href</a></iframe><p>Defining a schema for our user object was an easy task. For more complex real world objects, <a href="https://json-schema.org/learn/getting-started-step-by-step.html">here</a> is an excellent documentation on how to build a schema from scratch.</p><h4>Recipe for data validation</h4><ul><li>Install <a href="https://json-schema.org/implementations.html">jsonshema</a></li></ul><p>jsonschema is a library to easily validate JSON data. It is easy to use and available in more than a dozen of languages.</p><pre>pip install jsonschema</pre><ul><li>List down all the interfaces where your application deals with JSON formatted data: REST endpoints, S3 incoming and outgoing data, messaging system, etc</li></ul><p>For example, below is a function which is triggered by messaging system in the backend on receiving a message for user registration. We should validate data that is being inputted to this function.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6db343e92c5f8dd4280ff78646b48398/href">https://medium.com/media/6db343e92c5f8dd4280ff78646b48398/href</a></iframe><ul><li>Now, define JSON schema for each of these interfaces</li></ul><p>Refer to the schema we defined above for user object.</p><ul><li>Validate data at all the interfaces using the schema defined above</li></ul><p>The library jsonschema provides an easy way to validate data w.r.t a given schema. Below is a decorator that you can use to validate function inputs, or you may call the validate_schema function from your code.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/864c4a9dbc894cfb698450d0ce16835f/href">https://medium.com/media/864c4a9dbc894cfb698450d0ce16835f/href</a></iframe><ul><li>Now, let’s add validation in our user_register function</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/04f1cf169e9388eeb78bf3e3fe3c1567/href">https://medium.com/media/04f1cf169e9388eeb78bf3e3fe3c1567/href</a></iframe><p>For the sake of brevity, we’ve only validated data at the receiving end in the this example, whereas it is recommended that you also do validation at the sending end.</p><h4>Discussions</h4><p>As I encountered during development, there is a good amount of learning curve involved in defining schemas and structuring your application to fit in this mechanism of validating data. Some of the common hurdles include: 1. maintaining consistency of schema across applications 2. learning how to define a strict schema (otherwise it just defeats the purpose of defining one) 3. making sure that every developer dealing with the applications in your system follows this mechanism.</p><p>Although you might feel some friction now, but in near future you’ll appreciate how early you’re able to detect an incompatible request and save valuable time. I’ve also found schemas as an easy way to view the data that is flowing through the application. It saves me from an expedition into the code.</p><p>In the end, you’ll certainly make your system more maintainable.</p><p>I hope this article has been of help to you. Do comment below if you’ve a question or would like to extend a discussion.</p><p>Thanks</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2778f46eadc6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/techmindtickle/https-medium-com-techmindtickle-json-schema-validation-in-event-driven-rest-services-2778f46eadc6">JSON Schema Validation in event-driven/REST services</a> was originally published in <a href="https://medium.com/techmindtickle">Mindtickle</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>