<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Manoj Tiwari on Medium]]></title>
        <description><![CDATA[Stories by Manoj Tiwari on Medium]]></description>
        <link>https://medium.com/@techiemanoj4?source=rss-300b4fe95538------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*l51wcnhkx32KV9xHNiBGnQ.jpeg</url>
            <title>Stories by Manoj Tiwari on Medium</title>
            <link>https://medium.com/@techiemanoj4?source=rss-300b4fe95538------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 04:03:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@techiemanoj4/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Building lightweight Cloud Native Java Application]]></title>
            <link>https://medium.com/@techiemanoj4/building-lightweight-cloud-native-java-application-6a49ad2741bc?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/6a49ad2741bc</guid>
            <category><![CDATA[quarkus]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Tue, 26 Jan 2021 11:09:00 GMT</pubDate>
            <atom:updated>2021-01-26T11:09:00.109Z</atom:updated>
            <content:encoded><![CDATA[<p>Java has always been famous regarding its performance, most of because of the abstraction layers between the code and the real machine, the cost of being multi-platform (Write once, run anywhere — remember this?), with a JVM in-between (JVM: software machine that simulates what a real machine does).</p><p>But in Container era, perhaps it <strong>does not make sense anymore</strong>, nor any advantage, <strong>build something multi-platform (interpreted) for something that will always run on the same place and platform</strong> (the <strong>Docker Container — Linux environment</strong>). Portability is now less relevant (maybe more than ever), those extra level of abstraction is not important.</p><p>Having said that, lets see comparison over two alternatives for building Cloud Native Java application : <strong>Quarkus</strong> Vs <strong>Spring Boot.</strong></p><h3>What is Spring Boot?</h3><p>To be in single line: built on top of spring framework, <strong>Spring Boot </strong>is an open-source framework that offers a much simpler way to build, configure and run Java web-based applications. Making of it a good candidate for Java based Cloud Native application or microservices.</p><h3>What is Quarkus?</h3><p>Quarkus is an open source, Kubernetes-native JavaTM framework tailored for GraalVM and OpenJDK HotSpot. It offers a full-stack framework, using top Java libraries and standards.</p><h4>Good to know- What is GraalVM?</h4><p><strong>GraalVM </strong>is a universal and polyglot virtual machine<strong> </strong>(<em>JavaScript, Python, Ruby, R, Java, Scala, Kotlin). </em>The GraalVM<em> (specifically Substrate VM</em>) makes possible the ahead-of-time (AOT) compilation, converting the bytecode into native machine code, resulting in a binary that can be executed natively.</p><p><strong>Bear in mind</strong> that not every feature are available in native execution, the AOT compilation has its limitations.</p><h3>What Quarkus offers?</h3><ol><li>Use in cloud, containers, and serverless environments</li></ol><ul><li><em>Low memory consumption and fast first response time makes Quarkus ideal for cloud, containers, and serverless environments.</em></li><li><em>Benefit from fast </em><strong><em>first response time</em></strong><em> — milliseconds versus the 10 seconds it takes a traditional cloud-native stack.</em></li><li><em>Reduce </em><strong><em>resident set size</em></strong><em> (RSS) memory — uses one-tenth of the memory needed for a traditional cloud-native stack.</em></li><li><em>Gain near </em><strong><em>instant scale up</em></strong><em> and </em><strong><em>high-density memory utilization</em></strong><em> in container orchestration platforms like Kubernetes.</em></li><li><em>Achieve much higher workload density, reducing overall costs for hardware and cloud compute and memory.</em></li></ul><p>2. Quarkus includes built-in capabilities to automate repetitive tasks, allowing developers to get their job done faster.</p><p>3. Quarkus seamlessly brings together imperative and reactive models, so developers can use the technology that best fits their use case.</p><p>4. Includes many capabilities — from database access to integration and business automation.</p><p>5. Supports microservices architectures and development.</p><h3>Quarkus vs Springboot</h3><h4>Startup Time</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/0*Q2Nr0BxGo4w1CkKO" /></figure><p>When combined with <a href="https://www.javacodegeeks.com/2017/12/learning-use-wholly-graalvm.html">GraalVM</a>, Quarkus will compile ahead-of-time (AOT).</p><p>Let’s try to elaborate on some terms:</p><ol><li><strong>JIT Compile</strong>r: When we write a Java program and compiles it (say, using the <em>javac</em> compiler), the compiler converts the source code to bytecode. This bytecode cannot be read by a processor so, at the next level, an interpreter interprets the bytecode and makes the processor capable of understanding this code. Now we all know, interpreters are slow! To avoid this, JVM runs another compiler that compiles this bytecode into machine code which can be read and executed by any processor. This is called Just in time compilation, as the code is converted into machine code only when it is being executed. The advantage with JIT compilation is that only hot methods (methods which will be executed) are compiled and hence, machine code is much more optimized. But it also means that the compilation process takes longer.</li><li><strong>AOT Compiler</strong>: Some compilers (like Graal) can be used to perform a total compilation of code before that code is executed (opposed to JIT compilation). This means that all methods (not only hot methods) are compiled into the machine code. The advantage with Ahead of Time compilation is that it is a lot faster, as the step of finding hot methods is not part of the compilation process.</li></ol><h3>Memory Footprint</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*otR6fVQRhWGdus6j" /></figure><p>In terms of memory usage, the most interesting indicators are the Resident Set Size (RSS) and Virtual memory Size. Just as a recap:</p><ul><li><strong>RSS</strong> is how much memory this process currently has in the main memory (RAM).</li><li><strong>VSZ</strong> is how much virtual memory the process has in total. This includes all types of memory, both in RAM and swapped out.</li></ul><h3>Quarkus: Pros and Cons</h3><p>Usually, people try to compare two frameworks and try to identify who is the winner too soon. The issue is, it all depends on the use-case of the problem you are trying to solve. Let’s look at some of the pros and cons on high level:</p><ol><li>The documentation offered by Quarkus is great and highly competitive when you try to check differences with Spring Boot. Although the community support for Spring Boot is unbeatable (today).</li><li>It does deliver on one thing it markets too much — the app booting time (an important ground for improvement in Java-based applications) by using the build-time meta-data processing logic and more importantly building standalone native images using Graal/Substrate VM.</li><li>It is good for serverless deployment use cases like AWS Lambda, boot time can seriously help you to reduce the overall cost you pay for the execution</li><li>We can never forget the fact that it’s built on top of known Enterprise standards like JAX-RS etc. and we run our applications in an optimized runtime, either via a native executable or using a Java runtime.</li><li>The hot reloads with Quarkus are even faster than Spring Boot.</li><li><em>One of the current framework limitations is that Quarkus doesn’t support the full set of some of the EE standards yet. EJBs, for example, aren’t supported. However, transactions are supported and some other functionality can be substituted with Quarkus’ own features.</em></li><li><em>Graal VM installation is not something everyone will be able to accomplish easily. We need to check OS-specific binaries and packages and that is not an easy task, or at least not straightforward.</em></li><li><em>Worth mentioning again, community forums are not filled with solutions to some weird problems you can get in with Quarkus.</em></li><li><em>One of the downsides of native builds via GraalVM is that this build takes a loooong time. It can even be much longer than what we are used to in a Java world. It need to take into account that this will slow down our overall pipeline execution time. In projects, we need to make this trade-off between pipeline execution times and container startup time. Besides the approach of scaling to zero, deployment scenarios should make use of some form of blue-green deployment, in order to avoid downtime for users, anyway. With that in mind, production startup time becomes less of an issue, since the old version will always stay active, until the new one is ready to roll.</em></li></ol><h3>Conclusion</h3><p>This article tried to highlight key points (on high level) that might have being considered while thinking of framework as matter of choice when you think about deploying your next microservice.</p><p>Deep dive to more referenced details will be high suggested to explore more on Quarkus.</p><h3>Reference</h3><ul><li><a href="http://www.mastertheboss.com/soa-cloud/quarkus/quarkus-vs-spring-boot-part-1">Quarkus vs Spring Boot - Part 1</a></li><li><a href="http://www.mastertheboss.com/soa-cloud/quarkus/quarkus-vs-spring-boot-part-2">Quarkus vs Spring Boot - Part 2</a></li></ul><p><a href="https://simply-how.com/quarkus-vs-micronaut">https://simply-how.com/quarkus-vs-micronaut</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6a49ad2741bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Multi-Container Pod Design Patterns]]></title>
            <link>https://medium.com/@techiemanoj4/multi-container-pod-design-patterns-4a085d376965?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a085d376965</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[containers]]></category>
            <category><![CDATA[container-orchestration]]></category>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[pods]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sat, 15 Feb 2020 10:57:43 GMT</pubDate>
            <atom:updated>2020-02-15T10:57:43.631Z</atom:updated>
            <content:encoded><![CDATA[<p>Pods will often only have one container — this is OK. One of the downsides of having a pod as an extra layer of abstraction around a container is that it seems like you should have multiple containers for a pod to be useful.</p><p>In fact, the opposite is true: single-container pods are more often the correct answer. Kubernetes adds “pods” so that you can have different types of containers — Docker, rkt, etc — managed by a single orchestration system. It also allows pod-level control of restart policies, networking, and filesystem sharing.</p><p>You don’t always need to use multi-container pods. When should you combine multiple containers into a single pod?</p><p>When the containers have the exact same lifecycle, or when the containers must run on the same node. The most common scenario is that you have a helper process that needs to be located and managed on the same node as the primary container.</p><p>Another reason to combine containers into a single pod is fro simpler communication between containers in the pod. These containers can communicate through shared volumes (writing to a shared file or directory) and through inter-process communication (semaphores or shared memory).</p><p>There are three common design patterns and use-cases for combining multiple containers into a single pod. We’ll walk through the <strong>sidecar pattern</strong>, the <strong>adapter pattern</strong>, and the <strong>ambassador pattern</strong>.</p><h3>Sidecar pattern</h3><p>The sidecar pattern consists of a main application — i.e. your web application — plus a helper container with a responsibility that is essential to your application, but is not necessarily part of the application itself.</p><p>The most common sidecar containers are logging utilities, sync services, watchers, and monitoring agents. It wouldn’t make sense for a logging container to run while the application itself isn’t running, so we create a pod that has the main application and the sidecar container. Another benefit of moving the logging work is that if the logging code is faulty, the fault will be isolated to that container — an exception thrown in the nonessential logging code won’t bring down the main application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/391/1*9VKzudK0vSxYzroCEgFa7Q.png" /></figure><h3>Adapter pattern</h3><p>The adapter pattern is used to standardize and normalize application output or monitoring data for aggregation.</p><p>As a simple example, we have a cluster-level monitoring agent that tracks response times. Say we have a Ruby application in our cluster that writes request timing in the format [DATE] - [HOST] - [DURATION], while another Node.js application writes the same information in [HOST] - [START_DATE] - [END_DATE].</p><p>The monitoring agent can only accept output in the format [RUBY|NODE] - [HOST] - [DATE] - [DURATION]. We could force the applications to write output in the format we need, but that burdens the application developer, and there might be other things depending on this format. The better alternative is to provide adapter containers that adjust the output into the desired format. Then the application developer can simply update the pod definition to add the adapter container and they get this monitoring for free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/398/1*V_Aa09VQbXsQEuQlyVPaMg.png" /></figure><h3>Ambassador pattern</h3><p>The ambassador pattern is a useful way to connect containers with the outside world. An ambassador container is essentially a proxy that allows other containers to connect to a port on localhost while the ambassador container can proxy these connections to different environments depending on the cluster’s needs.</p><p>One of the best use-cases for the ambassador pattern is for providing access to a database. When developing locally, you probably want to use your local database, while your test and production deployments want different databases again.</p><p>Managing which database you connect to could be done through environment variables, but will mean your application changes connection URLs depending on the environment. A better solution is for the application to always connect to localhost, and let the responsibility of mapping this connecting to the right database fall to an ambassador container. Alternatively, the ambassador could be sending requests to different shards of the database — the application itself doesn’t need to worry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*Ha7oD8m7La4EEdYGs2s4eg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a085d376965" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Core Values of SAFe Model]]></title>
            <link>https://medium.com/@techiemanoj4/core-values-of-safe-model-337944601207?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/337944601207</guid>
            <category><![CDATA[safe-framework]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[scaled-agile]]></category>
            <category><![CDATA[safe]]></category>
            <category><![CDATA[core-values]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sat, 15 Feb 2020 10:45:36 GMT</pubDate>
            <atom:updated>2020-02-15T10:45:36.728Z</atom:updated>
            <content:encoded><![CDATA[<p>The four Core Values of <strong><em>alignment</em></strong>, <strong><em>built-in quality</em></strong>, <strong><em>transparency</em></strong>, and <strong><em>program execution</em></strong> represent the fundamental beliefs that are key to SAFe’s effectiveness. These guiding principles help dictate behavior and action for everyone who participates in a SAFe portfolio.</p><h3>Details</h3><p>SAFe is based on three primary bodies of knowledge: Agile Development, Lean Product Development, and Systems Thinking. That makes SAFe broad, deep and scaleable.</p><p>But at its core, SAFe places the highest value on four things: alignment, built-in quality, transparency, and program execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*00HtJyZOQRzMuALC8jJ38Q.png" /></figure><h3>Alignment</h3><p>Alignment is needed to keep pace with fast change, disruptive competitive forces, and geographically distributed teams. While empowered, Agile Teams are good (even great), but the responsibility for strategy and alignment cannot rest with the combined opinions of the teams, no matter how good they are. Instead, alignment must rely on the Enterprise business objectives.</p><p>Here are some of the ways how SAFe supports alignment:</p><p>Alignment starts with the strategy and investment decisions at the Portfolio level and is reflected in Strategic Themes, Portfolio Vision, and the Portfolio Backlog. In turn, this informs the Vision, Roadmap, and the backlogs at all levels of SAFe. Continuous Exploration with Customer Centricity and Design Thinking gathers the inputs and perspectives from a diverse group of stakeholders and information sources to ensure that the items in the backlogs contain economically prioritized and refined work, ready for teams to implement. All work is visible, debated, resolved and transparent.</p><p>Alignment is supported by clear lines of content authority, starting with the portfolio and then resting primarily with the Product and Solution Management roles, and extending to the Product Owner role.</p><p>PI Objectives and Iteration Goals are used to communicate expectations and commitments. Cadence and synchronization are applied to ensure that things stay in alignment, or that they drift only within reasonable economic and time boundaries.</p><p>Architectures and user experience guidance and governance help ensure that the Solution is technologically sound, robust, and scalable.</p><p>Economic prioritization keeps stakeholders engaged in continuous, agreed-to, rolling-wave prioritization, based on the current context and evolving facts.</p><h3><strong>Built-in Quality</strong></h3><p>Built-in Quality ensures that every element and every increment of the solution reflects quality standards throughout the development lifecycle.</p><p>Quality is not “added later.”</p><p>Building quality in is a prerequisite of Lean and flow — without it, the organization will likely operate with large batches of unverified, unvalidated work. Excessive rework and slower velocities are likely results.</p><p>Also the bigger the system, the more important endemic quality is, so there can be no ambiguity about the importance of built-in quality in large-scale systems. It is mandatory.</p><p>Built-in quality is a major foundational element of SAFe, and since it’s impossible to localize the quality discussion to every specific activity or artifact that affects quality, the SAFe Built-in Quality article organizes quality thinking around five specific aspects — Flow, Architecture and Design Quality, Code Quality, System Quality and Release Quality.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/496/1*YX9xWqhNfQ7zBHgI75tVrg.png" /></figure><h3><strong>Transparency</strong></h3><p>Solution development is hard. Things go wrong or do not work out as planned. Without openness, facts are obscure and decision-making is based on speculative assumptions and lack of data. No one can fix a secret.</p><p>To ensure openness — trust is needed. Trust exists when the business and development can confidently rely on another to act with integrity, particularly in times of difficulty. Without trust no one can build high-performance teams and programs, nor build (or rebuild) the confidence needed to make and meet reasonable commitments. And without trust, working environments are a lot less fun and motivating.</p><p>Building trust takes time. Transparency is an enabler of trust, provided through several SAFe practices:</p><ol><li>Executives, Lean Portfolio Management, and other stakeholders can see the Portfolio Kanban and program backlogs, and they have a clear understanding of the PI Objectives for each Agile Release Train or Solution Train.</li><li>ARTs have visibility into the team’s backlogs, as well as other Program Backlogs.</li><li>Teams and programs commit to short-term, visible commitments that they routinely meet. Inspect and Adapt occurs with all relevant stakeholders and creates backlog improvement items from lessons learned. Teams and Agile Release Trains (ARTs) can see portfolio business and enabler Epics. They have visibility into new initiatives.</li><li>Progress is based on objective measures of working solutions.</li><li>Everyone can understand the velocity and WIP of the teams and programs; strategy and the ability to execute are visibly aligned.</li><li>Programs execute reliably, as noted below.</li></ol><p>@Declaimer — Above article is collated for education and knowledge sharing purpose, without intention to violate any copyright.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=337944601207" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Major Challenges to Scaling Agile In Enterprise Organizations]]></title>
            <link>https://medium.com/@techiemanoj4/major-challenges-to-scaling-agile-in-enterprise-organizations-d62b28b768ee?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/d62b28b768ee</guid>
            <category><![CDATA[safe-framework]]></category>
            <category><![CDATA[agile-transformation]]></category>
            <category><![CDATA[scaled-agile]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sat, 30 Nov 2019 07:04:34 GMT</pubDate>
            <atom:updated>2019-11-30T07:04:34.634Z</atom:updated>
            <content:encoded><![CDATA[<p>The benefits of agile for enterprises are clear — increased productivity, delivery speed and time to market, ability to manage changing priorities, software quality, and boosting team morale. However, the sheer size of enterprise organizations and the bureaucratic nature that comes along with such size present numerous challenges in scaling agile.</p><p>The following are some of the main challenges faced by enterprises.</p><h3><strong>Legacy Systems</strong></h3><p>Legacy systems create many difficulties for a number of reasons, ranging from the technology to the fact that teams working on these systems have historically worked within silos. On the technical side of things, legacy systems are not designed for agile practices that focus on rapid and frequent delivery.</p><p>Equally challenging is the mindset surrounding legacy systems; this is symptomatic of a larger enterprise challenge that includes skepticism of new methods and resistance to organizational change, or in other words, the “things have always been done this way” mentality.</p><h3>Change Resistance</h3><p>One of the most common and difficult challenges to scaling agile in enterprise environments is resistance to change. In large delivery environments, where processes are so ingrained and teams are large, it is very difficult to enact change that will affect organizational culture and processes. Change resistance plays out in a number of ways, from general skepticism of the efficacy of agile methodologies to managerial resistance to change and pushback from the bottom-up.</p><h3>Getting Executive Support</h3><p>Change impacts all aspects of an organization; from workflows to employee satisfaction. It’s important for leaders to be prepared to address any issues or backlash that might arise during periods of change by providing constant support to ensure that the organization stays focused on an agile mindset. This is particularly difficult as the mindset at the executive level also needs to be transformed as decision-making is often cemented in more rigid, waterfall frameworks. Executive leadership support is at the foundation of scaled agile transformation. Successful transformations are a result of leadership teams that are committed to organizational change, and promoting innovation and collaboration as new styles of working are implemented.</p><h3>Integrating Non-Agile Teams</h3><p>A contributing factor in a successful transition to an agile environment is an enterprise’s ability to get multiple teams onboard. Having agile teams working with other teams and departments that don’t follow the same methodologies and/or mindset has proven to be one of the main challenges of cross-team coordination. Changing entire delivery frameworks from pre-existing processes — many of which have been the standard in organizations for years — takes effort, time, and investment.</p><h3>Knowledge Acquisition</h3><p>Lack of experience is a notable challenge and may include aspects like lack of investment in coaching and training, misunderstanding agile concepts and their purpose, and general organizational and personnel inexperience in implementing and delivering via agile frameworks. For an enterprise to properly scale agile, a training and coaching program on agile values and processes is necessary as insufficient guidance leads to chaos and poor implementation. Without a thorough understanding of what agile is, organizations that attempt to scale will encounter significant challenges.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d62b28b768ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Scrum metrics and KPIs]]></title>
            <link>https://medium.com/@techiemanoj4/understanding-scrum-metrics-and-kpis-fcf56833d488?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcf56833d488</guid>
            <category><![CDATA[scrum-metrics]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[scrum-kpi]]></category>
            <category><![CDATA[capacity]]></category>
            <category><![CDATA[commitment-reliability]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sun, 17 Nov 2019 10:25:36 GMT</pubDate>
            <atom:updated>2019-11-17T10:25:36.081Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Metrics Covered</strong></h4><ol><li>Velocity</li><li>Velocity Fluctuation</li><li>Commitment Reliability</li><li>Capacity Utilization</li><li>Estimation Variance</li><li>Scope Change</li><li>Defect Leakage</li><li>Backlog Health</li></ol><h4><strong>Velocity</strong></h4><p>Velocity is an extremely simple, powerful method for accurately measuring the rate at which scrum development teams consistently deliver business value. It is an indication of the average amount of Product Backlog turned into an Increment of product during a Sprint by a Scrum Team, tracked by the Development Team for use within the Scrum Team. Thus, to calculate velocity of your agile team, simply add up the estimates of the features, user stories, requirements or backlog items successfully delivered in an iteration. It should the team:</p><ul><li>Predicting how much scope can be delivered by a specific date.</li><li>Predicting a date for a fixed amount of scope to be delivered.</li><li>Understanding our limits while defining the amount of scope we will commit for a sprint.</li></ul><p>Measuring unit = Story Points</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/547/1*oN7a1xkjCK2CyQ-NW05oKA.png" /></figure><h4><strong>Velocity Fluctuation</strong></h4><p>Represents the velocity variance from average with relation to max and min tolerance.</p><p>Measuring Unit = Story Points</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*Ah--RnD2YQyJ7xqjr9Ocxg.png" /></figure><h4><strong>Commitment Reliability</strong></h4><p>Commitment Reliability the ratio of points delivered vs points committed to. This is also referred to as your Say/Do Ratio. Well-functioning organizations build reliable products, and reliable products are the sum of the reliability of the teams building them.</p><p>The objective is to measure, at a granular enough level, the value to the customer, so there isn’t any question about delivered scope. Everyone needs to have a shared understanding of what was delivered relative to what was committed.</p><p>Measuring unit = Story Points</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*-jzl6_-9f-fjYp064j0PkQ.png" /></figure><h4><strong>Capacity Utilization</strong></h4><p>Capacity of an agile team is an important measure that should be used to inform the team how much workload it should undertake during its sprint planning meeting for an upcoming sprint. If the capacity and workload are not in balance, then the team members should have an informed conversation with the product owner on how to achieve the balance.</p><p>The estimated capacity number is used to provide guidance to the agile team in terms of how much work (stories or features to be implemented, and defects to be fixed) can be planned for the upcoming sprint.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*GLhDvW_nQNud-CMBciQ6Jw.png" /></figure><p>Measuring unit = Efforts (in hours)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/821/1*EvyvfG8Fm9j6MASpGCHnKA.png" /></figure><h4><strong>Estimation Variation</strong></h4><p>Estimation Variation represents the comparison of the effort that was planned (Estimated Hours) among the actual efforts (Spent Hours) with in a sprint.</p><p>Over Estimation = (Estimated efforts — Actual efforts/Estimated efforts) * 100</p><p>Under Estimation = (Actual efforts — Estimated efforts/Estimated efforts) * 100</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*4RyZRTBEqG4Z4Wx0pJKuQw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*MYBeMfmbe0w85jZPbLZnFg.png" /></figure><h4>Scope Change</h4><p>Product backlog items added or removed from Sprint scope after sprint started.</p><p>Usually scope change doesn’t represents good practice but in practical scenario it happens. It too reflects quality of backlog grooming, prioritization, sprint and capacity planning.</p><p>Measuring unit = Story Points</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*TznmV4YhoXm-5Kabf0e6ew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*-vRivrZLFoj2OUKqDqObtg.png" /></figure><h4>Defect Leakage</h4><p>Ratio of number of <strong>defects</strong> attributed to a stage, but only captured in subsequent stages, to the sum of total number of <strong>defects</strong> captured in that particular stage and the total number of <strong>defects</strong> attributed to a stage, but only captured in subsequent stages.</p><p>This metric reflects testing quality.</p><p>Measuring unit = Defect count</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*RrG1oAlrh8f8ALJLc2eEFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*jYIg9dVZvD8_odnRV8kVBQ.png" /></figure><h4>Backlog Health</h4><p>Total story points available in product backlog compared with average velocity.</p><p>It reflects quality of backlog grooming and preparedness of team for future sprint. In general, team should have properly groomed backlog for next 3 sprints at least at a given point of time.</p><p>Measuring unit = Story points</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/933/1*Bn9hjeUUmWgT9qa1sHytTg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcf56833d488" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What are Agile User Stories?]]></title>
            <link>https://medium.com/@techiemanoj4/what-are-agile-user-stories-4f2bf66333ac?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f2bf66333ac</guid>
            <category><![CDATA[writing-user-stories]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[what-are-user-stories]]></category>
            <category><![CDATA[user-stories]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sun, 17 Nov 2019 08:50:20 GMT</pubDate>
            <atom:updated>2019-11-17T08:50:20.050Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s tempting to think that user stories are, simply put, software system requirements. But they’re not.</p><p>A key component of agile software development is putting people first, and user-stories put actual end users at the center of the conversation. Stories use non-technical language to provide context for the development team and their efforts. After reading a user story, the team knows why they are building what they’re building and what value it creates.</p><p>User stories are one of the core components of an agile program. They help provide a user-focused framework for daily work — which drives collaboration, creativity, and a better product overall.</p><h3>What Are Agile User Stories?</h3><p>A user story is the smallest unit of work in an agile framework. It’s an end goal, not a feature, expressed from the software user’s perspective.</p><p>The purpose of a user story is articulate how a piece of work will deliver a particular value back to the customer. Note that “customers” don’t have to be external end users in the traditional sense, they can also be internal customers or colleagues within your organization who depend on your team.</p><p>User stories are a few sentences in simple language that outline the desired outcome. They don’t go into detail. Requirements are added later, once agreed upon by the team.</p><p>Stories fit neatly into agile frameworks like scrum and kanban. In scrum, user stories are added to sprints and “burned down” over the duration of the sprint. Kanban teams pull user stories into their backlog and run them through their workflow. It’s this work on user stories that help scrum teams get better at estimation and sprint planning, leading to more accurate forecasting and greater agility.</p><p>User stories are also the building blocks of larger agile frameworks like epics and initiatives. Epics are large work items broken down into a set of stories, and multiple epics comprise an initiative. These larger structures ensure that the day to day work of the development team (on stores) contributes to the organizational goals built into epics and initiatives.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P9Bm7bOfGpGYhaA4" /></figure><h3>Why Create User Stories?</h3><p>For development teams new to agile, user stories sometimes seem like an added step. Why not just break the big project (the epic) into a series of steps and get on with it? But stories give the team important context and associate tasks with the value those tasks bring.</p><p>User stories serve a number of key benefits:</p><ul><li>Stories keep the focus on the user. A To Do list keeps the team focused on tasks that need checked off, but a collection of stories keeps the team focused on solving problems for real users.</li><li>Stories enable collaboration. With the end goal defined, the team can work together to decide how best to serve the user and meet that goal.</li><li>Stories drive creative solutions. Stories encourage the team to think critically and creatively about how to best solve for an end goal.</li><li>Stories create momentum. With each passing story the development team enjoys a small challenges and a small win, driving momentum.</li></ul><h3>Working with User Stories</h3><p>Once a story has been written, it’s time to integrate it into your workflow. Generally a story is written by the product owner, product manager, or program manager and submitted for review.</p><p>During a sprint or iteration planning meeting, the team decides what stories they’ll tackle that sprint. Teams now discuss the requirements and functionality that each user story requires. This is an opportunity to get technical and creative in the team’s implementation of the story. Once agreed upon, these requirements are added to the story.</p><p>Another common step in this meeting is to score the stories based on their complexity or time to completion. Teams use t-shirt sizes, the Fibonacci sequence, or planning poker to make proper estimations. A story should be sized to complete in one sprint, so as the team specs each story, they make sure to break up stories that will go over that completion horizon.</p><h3>How to Write User Stories</h3><p>Consider the following when writing user stories:</p><ul><li>Definition of “Done” — The story is generally “done” when the user can complete the outlined task, but make sure to define what that is.</li><li>Outline subtasks or tasks — Decide which specific steps need to be completed and who is responsible for each of them.</li><li>User personas — For Whom? If there are multiple end users, consider making multiple stories.</li><li>Ordered Steps — Write a story for each step in a larger process.</li><li>Listen to feedback — Talk to your users and capture the problem or need in their words. No need to guess at stories when you can source them from your customers.</li><li>Time — Time is a touchy subject. Many development teams avoid discussions of time altogether, relying instead on their estimation frameworks. Since stories should be completable in one sprint, stories that might take weeks or months to complete should be broken up into smaller stories or should be considered their own epic.</li></ul><p>Once the user stories are clearly defined, make sure they are visible for the entire team.</p><h3>User Story Template and Examples</h3><p>User stories are often expressed in a simple sentence, structured as follows:</p><p>“As a [persona], I [want to], [so that].”</p><p>Breaking this down:</p><ul><li>“As a [persona]”: Who are we building this for? We’re not just after a job title, we’re after the persona of the person. Robert. Our team should have a shared understanding of who Robert is. We’ve hopefully interviewed plenty of Robert’s. We understand how that person works, how they think and what they feel. We have empathy for Robert.</li><li>“Wants to”: Here we’re describing their intent — not the features they use. What is it they’re actually trying to achieve? This statement should be implementation free — if you’re describing any part of the UI and not what the user goal is you’re missing the point.</li><li>“So that”: how does their immediate desire to do something this fit into their bigger picture? What’s the overall benefit they’re trying to achieve? What is the big problem that needs solving?</li></ul><p>For example, user stories might look like:</p><ul><li>As Robert, I want to invite my friends, so we can enjoy this service together.</li><li>As Sascha, I want to organize my work, so I can feel more in control.</li><li>As a manager, I want to be able to understand my colleagues progress, so I can better report our success and failures.</li></ul><p>This structure is not required, but it is helpful for defining done. When that persona can capture their desired value, then the story is complete. We encourage teams to define their own structure, and then to stick to it.</p><h3>Getting Started with Agile User Stories</h3><p>User stories describe the why and the what behind the day-to-day work of development team members, often expressed as persona + need + purpose. Understanding their role as the source of truth for what your team is delivering, but also why, is key to a smooth process.</p><p>Start by evaluating the next, or most pressing, large project (e.g. an epic). Break it down into smaller user stories, and work with the development team for refinement. Once your stories are out in the wild where the whole team can see them, you’re ready to get to work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f2bf66333ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[User Stories]]></title>
            <link>https://medium.com/@techiemanoj4/user-stories-ecea656c72e7?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecea656c72e7</guid>
            <category><![CDATA[user-stories]]></category>
            <category><![CDATA[scrum]]></category>
            <category><![CDATA[rabbit-foot]]></category>
            <category><![CDATA[agile]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sun, 17 Nov 2019 08:36:16 GMT</pubDate>
            <atom:updated>2019-11-17T08:36:16.342Z</atom:updated>
            <content:encoded><![CDATA[<h3>User Stories</h3><p>User stories trace their origins to eXtreme Programming, another Agile method with many similarities to Scrum. Scrum teams often employ aspects of eXtreme Programming, including user stories as well as engineering practices such as refactoring, test-driven development (TDD) and pair programming to name a few. Check out our Agile Software Developer learning events for training on these engineering practices. For now, we will concentrate on the capability of writing good user stories.</p><h3>The Three ‘C’s</h3><p>A User Story has three primary components, each of which begin with the letter ‘C’:</p><p><strong>Card</strong></p><p>The Card, or written text of the User Story is best understood as an invitation to conversation. This is an important concept, as it fosters the understanding that in Scrum, you don’t have to have all of the Product Backlog Items written out perfectly “up front”, before you bring them to the team. It acknowledges that the customer and the team will be discovering the underlying business/system needed as they are working on it. This discovery occurs through conversation and collaboration around user stories.<br>The Card is usually follows the format similar to the one below</p><blockquote><em>As a &lt;user role&gt; of the product,</em></blockquote><blockquote><em>I can &lt;action&gt;</em></blockquote><blockquote><em>So that &lt;benefit&gt;.</em></blockquote><p>In other words, the written text of the story, the invitation to a conversation, must address the “who”, “what” and “why” of the story.</p><p>Note that there are two schools of thought on who the &lt;benefit&gt; should be for. Interactive design specialists (like Alan Cooper) tell us that everything needs to be geared towards not only the user but a user Persona with a name, photo, bio, etc. Other experts who are more focused on the testability of the business solution (like Gojko Adzic) say that the benefit should directly address an explicit business goal. Imagine if you could do both at once! You can, and this will be discussed further in more advanced modules.</p><p><strong>Conversation</strong></p><p>The collaborative conversation facilitated by the Product Owner which involves all stakeholders and the team.</p><p>As much as possible, this is an in-person conversation.</p><p>The conversation is where the real value of the story lies and the written Card should be adjusted to reflect the current shared understanding of this conversation.</p><p>This conversation is mostly verbal but most often supported by documentation and ideally automated tests of various sorts (e.g. Acceptance Tests).</p><p><strong>Confirmation</strong></p><p>The Product Owner must confirm that the story is complete before it can be considered “done”<br>The team and the Product Owner check the “doneness” of each story in light of the Team’s current definition of “done”<br>Specific acceptance criteria that is different from the current definition of “done” can be established for individual stories, but the current criteria must be well understood and agreed to by the Team. All associated acceptance tests should be in a passing state.</p><h3><strong>INVEST</strong></h3><p>The test for determining whether or not a story is well understood and ready for the team to begin working on it is the INVEST acronym:</p><p><strong>I — Independent</strong></p><p>The solution can be implemented by the team independently of other stories. The team should be expected to break technical dependencies as often as possible — this may take some creative thinking and problem solving as well as the Agile technical practices such as refactoring.</p><p><strong>N — Negotiable</strong></p><p>The scope of work should have some flex and not be pinned down like a traditional requirements specification. As well, the solution for the story is not prescribed by the story and is open to discussion and collaboration, with the final decision for technical implementation being reserved for the Development Team.</p><p><strong>V — Valuable</strong></p><p>The business value of the story, the “why”, should be clearly understood by all. Note that the “why” does not necessarily need to be from the perspective of the user. “Why” can address a business need of the customer without necessarily providing a direct, valuable result to the end user. All stories should be connected to clear business goals. This does not mean that a single user story needs to be a marketable feature on its own.</p><p><strong>E — Estimable</strong></p><p>The team should understand the story well enough to be able estimate the complexity of the work and the effort required to deliver the story as a potentially shippable increment of functionality. This does not mean that the team needs to understand all the details of implementation in order to estimate the user story.</p><p><strong>S — Small</strong></p><p>The item should be small enough that the team can deliver a potentially shippable increment of functionality within a single Sprint. In fact, this should be considered as the maximum size allowable for any Product Backlog Item as it gets close to the top of the Product Backlog. This is part of the concept of Product Backlog refinement that is an ongoing aspect of the work of the Scrum Team.</p><p><strong>T — Testable</strong></p><p>Everyone should understand and agree on how the completion of the story will be verified. The definition of “done” is one way of establishing this. If everyone agrees that the story can be implemented in a way that satisfies the current definition of “done” in a single Sprint and this definition of “done” includes some kind of user acceptance test, then the story can be considered testable.</p><h3>Splitting User Stories:</h3><p>Sometimes a user story is too big to fit into a Sprint. The simplest approach to splitting is to look for a literal or implied conjunction “and” or “or” in the text of the story and then create two or more new stories from the parts around the conjunction. For example: “As a user I can do one thing and another thing so that I’m happy.” That can be split into “As a user I can do one thing so that I’m happy” and another story “As a user I can do another thing so that I’m happy.” Some additional ways of splitting a story include:</p><ul><li>Split by process step — every step is a new user story</li><li>Split by I/O channel — each I/O channel becomes a separate story</li><li>Split by user options — the options become the user stories</li><li>Split by role/persona — each role/persona becomes a separate story</li><li>Split by data range — every significant range is a new user story (e.g. 0, 1–9, 10–99 or last year, this year, next year).</li><li>Split by CRUD action — create, read, update, delete (only applicable if each action has business logic and they are asymmetric).</li></ul><p>WARNING: Do not split stories by system, component, architectural layer or development process as this will conflict with the teams definition of “done” and undermine the ability of the team to deliver potentially shippable software every Sprint.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecea656c72e7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Kafka Queuing: Kafka as a Messaging System]]></title>
            <link>https://medium.com/@techiemanoj4/kafka-queuing-kafka-as-a-messaging-system-e67aedc384?source=rss-300b4fe95538------2</link>
            <guid isPermaLink="false">https://medium.com/p/e67aedc384</guid>
            <category><![CDATA[kafka-streams]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[queuing]]></category>
            <dc:creator><![CDATA[Manoj Tiwari]]></dc:creator>
            <pubDate>Sat, 19 Oct 2019 03:43:30 GMT</pubDate>
            <atom:updated>2019-10-19T03:43:30.314Z</atom:updated>
            <content:encoded><![CDATA[<h3>Objective</h3><p>In this article, we will learn the concept of Apache Kafka Queuing. Basically, Queuing in Kafka is one of the models for messaging traditionally. So, let’s begin with the brief introduction to Kafka as a Messaging System, which will help us to understand Kafka Queuing. Moreover, we will see some of the applications of Kafka Queue to clear the concept better.</p><h3>Kafka as a Messaging System</h3><p>There are two models for messaging traditionally, such as Kafka queuing and publish-subscribe in Kafka.</p><p>Let’s discuss both Kafka models in detail:</p><h3>Kafka Queue</h3><p>In this Kafka messaging system, a pool of kafka consumers may read from a server. Also, each record goes to one of them here. It has some strengths as well as some weakness. Its strength is that it permits us to divide up the processing of data over multiple consumer instances, that help us scale our processing. But its weakness is, it is not multi-subscriber, as soon as one process reads the data it’s gone.</p><h3>Kafka Publish-Subscribe</h3><p>Whereas in this Kafka Publish-Subscribe system, the record is broadcast to all the Kafka consumers. It permits us to broadcast data to multiple processes. However, it also has some limitations, like there is no way of scaling processing because here every message goes to every subscriber.</p><p>In Kafka, these two concepts are generalized by the Kafka consumer group. However, the consumer group in Kafka permits us to divide up processing over a collection of processes, with a Kafka queue. Here the collection of processes refers to the members of the consumer group. Moreover, Kafka permits us to broadcast messages to multiple consumer groups, with Kafka publish-subscribe.</p><p>So, the main benefit of Kafka’s model is both these properties are available in every Kafka topic — it can scale processing as well as it is multi-subscriber. Hence, that implies we do not have to select one or the other.</p><p>Kafka has stronger ordering guarantees than a traditional messaging system, too.</p><p>Since there is no parallelism in the processing in the traditional system, Kafka performs it well with the notion of parallelism. Because Kafka can offer both ordering guarantees and load balancing over a pool of consumer processes.</p><h3>Need for Kafka Queuing</h3><p>One of Kafka Queuing application is Microservice architecture. It essentially demands some sort of message queuing system. Let’s understand microservice architecture first. It is a concept of decoupling an interconnected monolithic application into different independent modules as well as external data sources along with APIs. Thus, for the purpose of handling microservices-external-source and inter-microservice and communications, Message queuing comes into the picture.</p><p>In addition, while we divide a big monolithic application into smaller, microservices (loosely-coupled), at that time the REST API calls increases which are amongst those microservices, and the number of connections to external data sources also increases.</p><p>However, keeping this huge system synchronous is not desirable, because it can render the entire application unresponsive. Also, it can defeat the whole purpose of dividing into microservices in the first place.</p><p>Hence, having Kafka at that time makes the whole data flow easier. Because it is distributed, highly fault-tolerant and also it has constant monitoring of broker nodes through services like Zookeeper. So, it makes it efficient to work.</p><h3>Message Queuing in ML Solutions Pipeline</h3><p>Apart from that, we can also use Kafka queuing for the various ML solution pipelines. However, ML solutions are built as:</p><p><strong>A user interface (on the client side, mobile/web) — →An API server and the database — →Machine learning (blackbox).</strong></p><p>However, ML black box is very compute-heavy and also it’s not practically easy to have those requests on a blocking synchronous mode. Moreover, all the requests can be in a queue and configure consumer API to take those requests one by one and feed them into the ML black box, in this scenario. So, while it comes to compute-intensive tasks, this pipeline can easily handle such as recognizing objects from thousands of images, that might take considerable time even without missing any requests.</p><p>Basically, microservices deployed into containers, such as by fault-tolerant distributed clusters of Kafka broker nodes it is mediated and using a Zookeeper it monitors it, which seems like a new way of enterprising software development.</p><p>So, this was all about Kafka Queuing: Kafka as a messaging system. Hope you like our explanation.</p><h3>Conclusion</h3><p>Hence, we have seen the complete concept of Kafka Queuing. Moreover, we discussed why Kafka as a message queuing. Along with this, we learned the two models- Kafka queue and Kafka publish-subscribe. Also, we saw why we need Kafka Queuing. Lastly, we discussed message queuing in ML solution pipeline. However, if any query occurs regarding Queuing in Kafka, feel free to ask through the comment section.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e67aedc384" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>