<?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 Marek Leszczyński on Medium]]></title>
        <description><![CDATA[Stories by Marek Leszczyński on Medium]]></description>
        <link>https://medium.com/@marek.leszczynski?source=rss-722df9be8688------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NqPCzrKxMpMNZB2GYET1xw.png</url>
            <title>Stories by Marek Leszczyński on Medium</title>
            <link>https://medium.com/@marek.leszczynski?source=rss-722df9be8688------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 08:46:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marek.leszczynski/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[Release Management Process — what is it, and why do you need it?]]></title>
            <link>https://medium.com/@marek.leszczynski/release-management-process-what-is-it-and-why-do-you-need-it-cc9eee503d84?source=rss-722df9be8688------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc9eee503d84</guid>
            <category><![CDATA[process-improvement]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[release-management]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Marek Leszczyński]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 16:33:36 GMT</pubDate>
            <atom:updated>2023-01-13T16:33:36.120Z</atom:updated>
            <content:encoded><![CDATA[<h2>Release Management Process — what is it, and why do you need it?</h2><p>If you have ever had to make significant software change, you probably know three main risks connected with that:</p><ul><li>Downtime</li><li>Bugs</li><li>&quot;Unhappy&quot; stakeholders/clients</li></ul><p>Even if you or your team put in a lot of effort, defects in the release process can ruin the positive impact of the changes and harm team morale. The amount of good work that has been delivered does not matter in this case. You may have to spend hours explaining why things did not go as planned, but this does not necessarily mean that the entire team or individual team members are inadequate and should be replaced with others who are perceived as &quot;better.&quot;</p><p>Besides reducing the risk of such issues occurring, investing in a robust release management process can bring numerous benefits to the project, such as the ability to focus on new product features, lower maintenance costs, and greater peace of mind. <br>A good release process can also encourage further investment in the project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*oDnC-2_rqSuZ8veR" /><figcaption>Photo by <a href="https://unsplash.com/@alvarordesign?utm_source=medium&amp;utm_medium=referral">Alvaro Reyes</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So, what constitutes a good release management process?</p><h3>Release management process</h3><p>The release management process considers all phases of the software release, from development through production release to post-release monitoring. A good release management process is critical for ensuring the smooth and successful deployment of software updates and maintaining the integrity and reliability of the software. The process is required anytime new features or hotfixes are requested. This approach can also come in handy when you need to plan maintenance for your infrastructure or sync updates with external partners that you have integrated with.</p><p>Before we move into the details, let&#39;s make one statement:</p><p><strong>There is no universal process that will fit 100% of every company. It must be tailored to the company to satisfy its needs and requirements.</strong></p><h4>Process overview</h4><p>In the process, we can define seven main stages:</p><ol><li>Planning,</li><li>Development,</li><li>Release Review,</li><li>Regression,</li><li>Go / No Go,</li><li>Deployment.</li><li>Monitoring</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QxRHF7Kk42YMzmakNaKmBg.png" /></figure><p>This may look familiar and similar to the Software Development Life Cycle (<a href="https://phoenixnap.com/blog/software-development-life-cycle">SDLC</a>), and you are right. So how does the release management process differ from the SDLC?</p><p>Software release management is a process that occurs during the later stages of the software development life cycle (SDLC). The SDLC is a structured process for developing software, while software release management focuses on delivering software updates and new versions to stakeholders. This process is typically a part of the maintenance phase of the SDLC. It involves planning, coordinating, and managing the delivery of software updates and new versions to stakeholders.</p><p>Overall, the SDLC is a broader process encompassing the entire software development process. In contrast, software release management is explicitly focused on the delivery of software updates and new versions.</p><p>The SDLC helps engineers develop software with a high degree of efficiency and quality. The same values, we can observe the proper release process in place.</p><p>Let&#39;s take a look at each phase in greater detail.</p><h4>#1. Planning</h4><p>This can be the second most time-consuming stage of the Release Management Process. During it, the team and stakeholders define what functionalities and improvements must be implemented and delivered to the end user.<br>The outcome of the Release Planning should be as follows:</p><ul><li>the desired scope of the release</li><li>timelines for the feature completion, code freeze, and deployment</li><li>schedule for the needed meetings (Release Review, Go/No Go)</li><li>identification of the possible risk related to the release.</li></ul><p>Once stated above, the team can move to the Development stage.</p><p><strong>Important!</strong></p><p>Involving all relevant stakeholders in the planning process, including development, testing, and support teams, is crucial.<strong><br></strong>Stakeholders should have requirements and designs prepared before the planning and listen to the team&#39;s opinion on setting adequate dates.</p><h4>#2. Development</h4><p>This is the most intensive part of the entire process, where the requested features and/or improvements are being implemented. The methodology used in the development process is up to the team; stakeholders should refrain from enforcing their ideas on how the team should work.<br>Stakeholders should <strong>only</strong> monitor the progress, and they may ask for incremental status updates and feature demonstration (if the feature is already demonstrable)<br>It is worth collecting feedback from the stakeholders as early as possible to adjust the implemented features and/or improvements.</p><p>As stated earlier in the article, SDLC is a good start to kick off the development process and find the most efficient way for the team.<br>Remember that it is a set of advice that must most likely be adjusted to reality.</p><h4>#3. Release Review</h4><p>Upon completion of development, stakeholders, product owners, and other relevant parties should review the scope of the release to determine if all requested features and improvements are included. If there are any gaps or missing features, this is the time to address them. <br>One way to review the scope is to check the list of the tickets the team has worked on. It is essential to mark the tickets appropriately, for example, by assigning a fix version.<br>If the scope is complete and all requested items are included, it is time to create Release Candidates (RC) and a Release Manifest document for future reference.</p><p>Release Manifest should include an executive summary, details of the deployment, included platform components, infrastructure changes, regression status, and the scope of the release.</p><h4>#4. Regression</h4><p>First of all, let&#39;s answer the question: What is regression?</p><blockquote><strong>Regression Testing</strong> is defined as a type of software testing to confirm that a recent program or code change has not adversely affected existing features. Regression Testing is nothing but a full or partial selection of already executed test cases that are re-executed to ensure existing functionalities work fine. [1]</blockquote><p>Now that we know what it is, we can easily state that regression is one of the most critical stages of the release process. During the regression testing, the team can ensure that all new work they have done does not affect existing platform capabilities and does not introduce a poor user experience.<br>Possible findings should be ticketed and passed to the development team to address and provide new RCs.</p><p>In addition to the functional testing, the team should test database schema, data migration, and rollback procedures in that stage.</p><p>Regression testing can be executed using automated, manual, or both methods. Automated test coverage is particularly helpful as the project grows since manual test coverage can be time-consuming and may delay the release. In addition, manual testing tends to focus more on new features rather than previously deployed ones, so it is important to ensure that automated testing covers all necessary areas.<br>A good practice is tracking regression status and test outcomes using tools such as <a href="https://www.gurock.com/testrail">TestRail</a> or <a href="https://www.testmo.com/">Testmo</a>.</p><h4>#5. Go / No Go</h4><p>It is the last checkpoint before the actual production deployment. In the Go / No Go should attend, representatives from key departments like Business, Product, Infrastructure, Security, and Development, and at least one QA who was involved in the regression.</p><p>At that meeting, the team should review the release manifest, paying particular attention to the status of testing, the steps in the release process (including <strong>tested </strong>back-out procedures and smoke test coverage), and the hand-off procedure for monitoring team members. It is especially important to ensure that all necessary steps have been tested.</p><p>The outcome of the Go / No Go should be the <strong>unanimous </strong>decision if the team has a green light for the deployment (<strong>Go</strong>) or if there is still something to address to mitigate the risk (<strong>No Go</strong>).<br>After getting a green light, it is time to push changes to production.</p><h4>#6. Deployment</h4><p>There is no standard way to approach the deployment itself. It can be done by e.g. merging the RC to the main branch in git or publishing the RC docker image to the production environment.<br>Once the new product version is pushed, it is worth running smoke tests of the critical functionalities and new key features and running platform health checks (if they are implemented, which is highly recommended).</p><h4>#7. Monitoring</h4><p>The last phase of the process is monitoring. In that phase, the team monitors the platform using various tools like <a href="https://newrelic.com/">NewRelic</a>, <a href="https://sentry.io/">Sentry</a>, or AWS CloudWatch. All spotted application bugs or performance issues should be reported and addressed in upcoming release cycles according to their urgency.</p><p>The above description should highlight the essential parts of the process. As we stated in the beginning, it has to be adjusted to the company&#39;s needs and may vary across the companies. However, it shouldn&#39;t be differences across the teams. A <strong>consistent</strong> process for managing changes to production environments will provide many benefits. Once company employees understand and start following the process, they will learn how to operate to reduce the risk of changes to the minimum.</p><p>The process may evolve since, after each cycle, lessons can be learned about what should be avoided and improved.</p><h4>#8. Release Retrospective (optional)</h4><p>A release retrospective is a meeting held after the completion of a software release in which the team discusses what went well, what could be improved, and what should be done differently in the future. It is not always necessary to hold a retrospective (like for small releases), but it can be a valuable tool for identifying areas for improvement and ensuring that future releases are more efficient and successful. During the retrospective, the team should take note of any improvements that can be made to the release process, such as updating templates, procedures, coverage, or monitoring. These improvements can then be incorporated into the next release to ensure a smoother and more efficient process.</p><h3>Why do you need it?</h3><p>There are several benefits to a good software release management process:</p><h4>Improved quality</h4><p>A well-defined software release management process ensures that software updates are thoroughly tested and ready for deployment, which helps improve the software&#39;s overall quality.</p><h4>Increased efficiency</h4><p>A good software release management process helps to streamline the software development process, reducing the time and effort required to deliver updates to stakeholders.</p><h4>Enhanced collaboration</h4><p>Involving all relevant stakeholders in the software release management process helps to foster collaboration and communication within the development team and with external stakeholders.</p><h4>Reduced risk</h4><p>A good software release management process helps to minimize the risk of software defects or issues that could impact the stability and reliability of the software.</p><h4>Improved customer satisfaction and confidence</h4><p>By delivering high-quality software updates regularly, organizations can improve customer satisfaction and build trust and confidence with their user base.</p><h4>Increased profitability</h4><p>A good software release management process can help organizations increase their profitability by reducing the time and effort required to deliver software updates.</p><h3>Summary</h3><p>Overall, following a well-defined software release management process, organizations can ensure that they deliver high-quality software updates efficiently and effectively on time while minimizing the risk and improving customer satisfaction.</p><p>[1] <a href="https://www.guru99.com/regression-testing.html">https://www.guru99.com/regression-testing.html</a> — viewed Nov. 8th, 2022</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc9eee503d84" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to apply AWS WAF to the HTTP API Gateway]]></title>
            <link>https://medium.com/@marek.leszczynski/how-to-apply-aws-waf-to-the-http-api-gateway-514199a17b36?source=rss-722df9be8688------2</link>
            <guid isPermaLink="false">https://medium.com/p/514199a17b36</guid>
            <category><![CDATA[aws-waf]]></category>
            <category><![CDATA[waf]]></category>
            <category><![CDATA[api-gateway]]></category>
            <dc:creator><![CDATA[Marek Leszczyński]]></dc:creator>
            <pubDate>Mon, 05 Dec 2022 13:07:46 GMT</pubDate>
            <atom:updated>2022-12-05T13:42:51.670Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ypKK3rcBz9DjD90U" /><figcaption>Photo by <a href="https://unsplash.com/es/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>What is Amazon WAF? It is a managed <strong>W</strong>eb <strong>A</strong>pplication <strong>F</strong>irewall service that helps protect applications and APIs against bots and exploits that consume resources, skew metrics, or cause downtime.<br>It provides an ability to configure Access Control Lists and their rules that <em>allow, block, or monitor</em> requests to your platform based on the specified rules.</p><p><strong>WAF has native support for:</strong></p><ul><li>Application Load Balancer</li><li>API Gateway*</li><li>CloudFront</li></ul><p><em>*Not all of the API Gateway modes are supported upon writing this article</em></p><p>Unfortunately, the HTTP mode of the API Gateway is not natively supported. However, it does not mean that you can&#39;t use WAF if you are using mentioned mode in your AWS API Gateway.</p><h4>How to apply AWS WAF to the API Gateway in HTTP mode?</h4><p>To apply WAF to your API Gateway, you must first put CloudFront distribution in front of the API Gateway.<br>The second step is disabling direct calls to your API Gateway and allowing traffic only from the CloudFront distribution.<br>The below picture shows a high-level overview of the infrastructure that allows using WAF for the API Gateway in the HTTP mode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eHNPpzO6PUdq0RKNHRMt0w.png" /></figure><p><strong>Applying WAF step by step:</strong></p><p>Let&#39;s assume that AWS API Gateway is already deployed.</p><p>1. Create a new CloudFront Distribution</p><ul><li>In the <em>Origin domain</em>, provide the AWS URL of the API Gateway.</li><li>Provide a <em>name</em><strong><em> </em></strong>that would allow you easily identify the resource in the config.</li><li>Add a custom header <strong><em>X-Origin-Verify</em></strong><em> </em>with a secret value. This value will be used later for limiting traffic only to the one originating from the CloudFront.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*Bb6dfipmhLM8PdSEarjwAQ.png" /></figure><p>2. Create a new AWS Lambda Function that will be used for authenticating requests</p><p>You can use the language that you like the most. Below is an example lambda handler written in JavaScript for Node 18.x runtime.<br><em>verificationToken </em>value is the value we provided for a custom header in step #1</p><pre>export const handler = async(event) =&gt; {<br>    const verificationToken = process.env.verificationToken<br>    <br>    let response = {<br>        &quot;isAuthorized&quot;: false,<br>        &quot;context&quot;: {}<br>    };<br>    <br>    if (event.headers[&quot;x-origin-verify&quot;] === verificationToken) {<br>        response = {<br>            &quot;isAuthorized&quot;: true,<br>            &quot;context&quot;: {}<br>        };<br>    }<br><br>    return response;<br>};</pre><p>3. Create a new authorizer in API Gateway</p><ul><li>Provide a friendly name for the authorizer</li><li>Select the newly created lambda function</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*iX0XjTdnnqxAdEXn24lHNw.png" /></figure><p>4. Attach the newly created authorizer to the routes</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1W-1cYa7IgZH5euWQTl_4Q.png" /></figure><p>5. Create a new WAF ACL</p><ul><li>Web ACL has to be created for the CloudFront</li><li>Associate CloudFront distribution created in step #1</li><li>Add needed rules or rule groups and follow the creator&#39;s steps</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bY5bMnYT-kvyp4aTDwbFew.png" /></figure><p>6. Test your API</p><ul><li>Direct calls to the API Gateway should return an HTTP 401 Unauthorized status code.</li></ul><pre>// 20221205134909<br>// https://********.execute-api.us-west-2.amazonaws.com/api/example-endpoint/1<br><br>{<br>  &quot;message&quot;: &quot;Unauthorized&quot;<br>}</pre><ul><li>Calls to the designated API URL should return a positive response.</li></ul><pre>// 20221205135148<br>// https://api.example.com/api/example-endpoint/1<br><br>{<br>  &quot;id&quot;: 1,<br>  &quot;name&quot;: &quot;example&quot;<br>}</pre><ul><li>Calls to the designated API URL that match set rules should invoke associated action, e.g., <em>deny</em></li></ul><pre>// 20221205134909<br>// https://api.example.com/api/example-endpoint/1?a=&lt;sql_injection&gt;<br><br>{<br>  &quot;message&quot;: &quot;Forbidden&quot;<br>}</pre><p>This is an example setup. You can improve it by, e.g., introducing automatic <em>X-Origin-Verify </em>header value rotation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=514199a17b36" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Architecture: 6 Principles Worth To Know]]></title>
            <link>https://medium.com/@marek.leszczynski/software-architecture-6-principles-worth-to-know-7cd949542a23?source=rss-722df9be8688------2</link>
            <guid isPermaLink="false">https://medium.com/p/7cd949542a23</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[design-principles]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Marek Leszczyński]]></dc:creator>
            <pubDate>Sun, 04 Dec 2022 16:44:49 GMT</pubDate>
            <atom:updated>2022-12-04T16:45:07.813Z</atom:updated>
            <content:encoded><![CDATA[<p>Previously, I wrote about the Design Review Process, which can help you choose the best solution for the stated problem and avoid bad decisions. Following the Design Review Process Template, we&#39;d know what we should think about while creating the design. In addition, we can set a few Architecture Principles that we can follow so that in our design, we would avoid mistakes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*guGl0EAKftTzicpL" /><figcaption>Photo by <a href="https://unsplash.com/@andrewtneel?utm_source=medium&amp;utm_medium=referral">Andrew Neel</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>#1. Names Matter</h4><p>This may sound trivial or even funny… But how many times you&#39;ve listened to multiple names for the same thing? Having only one word for a given item would be much easier.</p><blockquote><em>Use a clear, consistent naming convention for business objects, business processes, and system components.</em></blockquote><p>What does it mean?</p><ul><li>Choose a single name that will be used consistently <strong>everywhere</strong> for any given object type, object property, operation, or system component.</li><li>Every name should be as evident and specific as is practical.</li><li>Avoid acronyms unless it is a widely understood convention or standard within the context it is used.</li><li>Don&#39;t try to be clever in coming up with names. Be as obvious as possible.</li></ul><h4>#2. Separation of duties</h4><p>Creating a single service that handles all responsibilities like authentication, sending emails, text messages, and many other things, in general, is not a good idea. This service is often of poor quality. It is worth following the Separation of duties principle to avoid such a situation.</p><blockquote><em>A given system component should have one job, i.e., a single coherent, closely-linked set of responsibilities.</em></blockquote><p>What does it mean?</p><ul><li>Do one job, and do it well.</li><li>Do not make one system component responsible for two or more different, loosely-related (or unrelated) jobs.</li></ul><p>For example, a given system component should not both maintain a business object state and also implement a business process.</p><h4>#3. Maintain internal consistency</h4><p>In my experience, I have been working on a project where at the beginning, different components had their representation of the same business object model. That led to later difficulties with working on new product features.</p><blockquote><em>All system components should understand and work with consistent* views of the same business object types and consistent models of the same business processes.</em></blockquote><p><strong>*</strong>Note that <strong><em>consistent</em></strong> need not mean <strong><em>identical</em></strong>: for example, two data representations of the same business object may contain different subsets of its fields; but there should be no contradictions, and different names should not be used for the same fields.</p><h4>#4. Business process ownership</h4><p>Having a business process or workflow spread across multiple system components is a straightforward way to run into troubles or challenges in implementing new platform features or debugging potential issues.</p><blockquote>For any core business process or workflow, one system component shall be responsible for implementing it.</blockquote><p>What does it mean?</p><ul><li>No duplication: do not implement the same process more than once in different system components. It’s worth mentioning <a href="https://www.digitalocean.com/community/tutorials/what-is-dry-development">DRY</a> here.</li><li>All variants of the same process should be owned by the same component, distinguished via configuration.</li></ul><p>For example, one system component might coordinate all video calls (e.g., using <a href="https://jitsi.org/">Jitsi</a>) creation for all of the various clients of the platform.</p><h4>#5. Business model ownership</h4><p>Suppose multiple system components mutate the state of a business object. In that case, it can take time to pinpoint the potential issue or lead to unnecessary dependencies between components.</p><blockquote>For any type of business object, <em>one system component </em>shall be responsible for maintaining the <em>current state </em>and <em>data integrity </em>of all of its instances.</blockquote><p>What does it mean?</p><ul><li>A given business object owner may own a key business object entity type and all of its <em>closely associated </em>business object types.</li><li>It shall be the <strong><em>single source of truth</em></strong><em> </em>(a.k.a. <strong><em>system of record</em></strong>) for the current state of any of its business objects.</li><li>It will be the <strong><em>only</em></strong><em> </em>system component that persists in its business objects&#39; current state and associations.</li><li>It will enforce rules to maintain the data integrity of its business objects, e.g., state-transition graphs, field value constraints, etc.</li></ul><h4><strong>#6. Push external system dependencies to the edges</strong></h4><blockquote><strong><em>Core</em></strong><em> </em>business objects and processes should never represent data or implement logic specific to any external systems with which the platform must integrate.</blockquote><p>What does it mean?</p><p>When integration with external systems is required, implement it in <strong><em>adapters</em></strong> that translate the internal business objects and operations to external systems and vice versa.</p><p>For example, one system component might handle all content delivery with many vendors’ platforms, presenting a consistent internal interface to other platform system components but using a set of channel-specific <strong><em>adapters</em></strong>.</p><h4>Bonus</h4><p>This one may not apply to all of the systems, but if you are working on a platform that provides generic functionalities to the clients, it is good to remember the following:</p><blockquote><strong>There are no customer-specific features. EVER</strong>. <strong>There are only <em>product </em>features</strong>.</blockquote><ul><li>There is no such thing as a <strong><em>customer feature</em></strong>, although there may be product features used by only a single customer at a given time.</li><li>Any new feature driven by the needs of a single customer must always be captured as <strong><em>configurable product requirements</em> </strong>and designed and implemented as <strong><em>configurable software</em></strong>.</li><li>Any new integration with a partner that requires custom software should be isolated and dealt with in a pluggable way (see above).</li></ul><p>Some of the above rules may be familiar since they belong to the <a href="https://www.baeldung.com/solid-principles">SOLID</a>. Although I hope that you found the above useful in your career.</p><p>If you have any thoughts or advice, please let me know and shoot a comment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7cd949542a23" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Implement a Process-oriented Approach to Feature Design]]></title>
            <link>https://medium.com/@marek.leszczynski/how-to-implement-a-process-oriented-approach-to-feature-design-8145a1c1e0ea?source=rss-722df9be8688------2</link>
            <guid isPermaLink="false">https://medium.com/p/8145a1c1e0ea</guid>
            <category><![CDATA[design-review]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[design-process]]></category>
            <dc:creator><![CDATA[Marek Leszczyński]]></dc:creator>
            <pubDate>Fri, 03 Dec 2021 01:46:40 GMT</pubDate>
            <atom:updated>2021-12-03T01:46:40.156Z</atom:updated>
            <content:encoded><![CDATA[<p>Over the course of every software developer’s career, the moment will come when you have to create a new feature or service from scratch. If you already have product requirements, this may not seem like a difficult task. However, if you don’t have a well-defined process in place for developing the new feature or service, your work will be much harder than you think.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*i6MCi2ZKOHl-tXT1VWR6jQ.jpeg" /></figure><p>Early in my career, I began work on a project using only the product requirements; there was no formal process in place for feature design and development. We simply implemented the code according to the product requirements, but we did not take into consideration how the new feature would fit into the platform as a whole.<br>Because of this, we did not store data in a consistent manner, the fields across the endpoints in the API were named inconsistently, and additional errors caused serious security issues. Managing such a system was extremely difficult, to say the least.<br>We realized that there had to be a more effective way to achieve our goal. With help from the more experienced engineers that joined the team, we created and implemented a process that helped us to avoid these past missteps, which in turn provided us with a more accurate and well-defined approach to software development.</p><p>How should you approach designing new functionalities or services so that you see the big picture and avoid mistakes? In my experience, the following process-oriented approach has worked well:</p><ul><li>Convene a Design Review Board</li><li>Create a Design Page</li><li>Schedule a Design Review Session</li></ul><h3><strong>The Design Review Board</strong></h3><p>The Design Review Board comprises representatives from the Product, Architecture, Infrastructure, Security, and Engineering teams who collaborate to review and evaluate software design proposals. Ultimately, all teams will be affected in some way by the new feature or service, so including representatives from relevant teams can help identify any concerns and possible issues before development begins. The Design Review Board process should be a transparent and open forum for all members to provide a meaningful and effective analysis of the proposed solution.</p><h4><strong>Purpose of the Design Review Board Process</strong></h4><p>The main purpose of the Design Review Board is to help achieve consensus and control over changes and additions to the developed system.</p><p><strong>Main goals of the Design Review Board process</strong>:</p><ul><li>Ensure that a proposed solution actually solves the stated problem.</li><li>Think carefully about what we change or build <strong><em>before</em></strong> we change or build it.</li><li>Provide engineers a forum for active, face-to-face dialogue to get useful feedback on their proposed designs (the conventional mechanism of face-to-face communication is usually more effective than email or chat).</li><li>Identify impacts or side effects of the proposed solution that will require non-development work. This may include customer documentation updates, infrastructure configuration changes, new monitoring and alerting, etc.</li></ul><h4><strong>Benefits of the Design Review Board process:</strong></h4><ul><li>Greater confidence in the design approach to the solution</li><li>Identification of potential issues early in the design process, before implementation begins</li><li>Higher quality in the final implementation</li><li>Identification of common needs across the systems that might lead to future re-usable components (e.g., common libraries, services, tools, etc.)</li><li>More reliable work breakdown and effort sizing</li><li>Capture of design artifacts for parts of the system as they are being changed or created</li><li>Consolidation of design artifacts in one location so they are easier to find</li><li>Management of dependencies among the system components</li><li>Better cross-pollination/sharing of information across Development, Architecture, and other teams</li><li>Good training/reinforcement in engineering best practices for members of the Development teams</li></ul><h4><strong>Design Review Board Process Triggers</strong></h4><p>Not every change in the system or implementation of functionalities requires the Design Review Board evaluation process. If a change is small or simple and has already been reviewed and evaluated, another Design Review Board process isn’t required.</p><p>The following factors can help you decide whether or not you should prepare a proposal for a Design Review Board evaluation:</p><p><strong>Trigger factors:</strong></p><ul><li>Change in the database (e.g., adding a new table, adding a new field)</li><li>Change in API structure, both external and internal (e.g., new fields, new endpoints)</li><li>Changing the way sensitive data is stored</li><li>Implementation of a new service</li><li>Changes that may affect the operation of dependent services</li></ul><p>Each company or team must adapt the factors to its needs in accordance with the specifics of the system.</p><h3><strong>Design Page</strong></h3><p>We know what the review process looks like, but how do you prepare for it? The first step is to create a design proposal. There are many ways you can do this, and you can use the method that works best for your particular project.<br>Based on my experience, the following template has been working well for years for projects in which I actively participate.<br>If you follow the Design Page Template, you may notice that it can also serve as a checklist for what the given design should include and what you should think about during the design process.</p><h3><strong>Design Page Template</strong></h3><h4><strong>Problem description</strong></h4><p>Brief description of the problem that the design is intended to solve</p><h4><strong>Requirements</strong></h4><p><strong>Functional requirements<br></strong>List of the functional requirements with a short description of each that the design must meet</p><p><strong>Non-functional requirements<br></strong>List of the non-functional requirements with a short description of each that the design must meet (e.g performance, scalability)</p><h4><strong>Proposed solution</strong></h4><p>This is the most critical and biggest part of the Design Page. It should include a detailed description of the proposed solution along with any diagrams, schemas, tables, images, etc. if they are needed.<br>Each visual representation of the given idea (e.g., using a flow diagram) will help more than text alone to provide clarity and increase understanding of the design.<br>This section can be divided into smaller sub-sections to make the proposal easier to understand or to emphasize important aspects that need special attention.</p><h4><strong>Components</strong></h4><p><strong>Existing components<br></strong>List of the existing components that have to be changed with a short description of how they have to be changed to satisfy the design</p><p><strong>New components<br></strong>List of the new components that have to be created with a short description of each</p><h4><strong>API Changes</strong></h4><p>Description of the API changes (either internal or external)<br>In the case of small changes, you can just provide a diff to show changes in the given endpoint.<br>With bigger changes, the API definition can be shown using OpenAPI or ReDoc.</p><h4><strong>Database changes</strong></h4><p>Description of the changes in the database schema such as a new table or a new field added to the existing table<br>You should point out if a given change is backward-compatible as well as the strategy for the migration of the changes.</p><h4><strong>Cross-Cutting concerns</strong></h4><p><strong>Security Considerations<br></strong>Description of the changes that have or may have an impact on the system security, e.g., the storage method for sensitive data in a database or a change in the authentication/authorization mechanism.</p><p><strong>Monitoring and alerting<br></strong>Description of the elements in the system that may need monitoring along with the description of how they should be monitored<br>Additionally, you should provide a description of the rules that can be used to trigger certain alerts in the production environment.</p><p><strong>Failure cases and remediations<br></strong>Description of the failure scenarios that are expected along with the description of the resolutions of these scenarios</p><p><strong>Health Checks</strong><br>Description of the health checks that can be implemented to monitor the health of the service</p><h4><strong>Alternative solutions</strong></h4><p>Brief description with pros and cons for every possible alternate solution for a given problem</p><h4><strong>Dependencies</strong></h4><p>List of the dependencies that the design depends on along with the description of each</p><h4><strong>System impacts</strong></h4><p>Description of impacts on the system. For example, this can be a list of the services that will be impacted with a description of how the services will be impacted. This also applies also to the potential impact on the external systems.</p><h4><strong>DevOps / Infra Changes</strong></h4><p>Description of the changes that have to be made to the system infrastructure (e.g., changes to the firewall rules) to ensure the correct functionality of the proposed solution</p><h4><strong>Documentation changes</strong></h4><p>List of the documents that require changes with a clear description of how and wherein the documents information about the change must be added. Additionally, if new documents will be required as a result of the proposed solution, ensure that you note this.</p><h4><strong>QA validation / automation</strong></h4><p>List of the possible test scenarios that may help with validating the implemented solution. It is also a good idea to add information about whether a given scenario can be automated in the future.</p><h3><strong>Design Review Session</strong></h3><p>When the proposal of the design is ready, it’s time for a review. It is a good practice to schedule a meeting and invite representatives from the Product, Architecture, Infrastructure, Security, and Engineering teams.</p><p>As a rule, the more people who attend a Design Review session, the more valuable the feedback can be. However, the more people who attend the meeting, the more costly the process will be. This should be approached with caution and determined when and who should participate so as not to generate unnecessary costs.<br>Depending on the size and complexity of the problem and the proposed solution, more than one session may be needed. It is a good idea to start the process with an hour-long session to see how the review itself will go.<br>During the review, the presenting engineer presents the proposal to the attendees, who may ask questions or make suggestions.<br>The presentation may produce one of the following three outcomes:</p><ul><li>the proposal has been <strong>accepted:<br></strong>When there are no remarks about or suggestions for changes to the proposal, key stakeholders approve the proposal so the team can start creating technical tasks and begin actual implementation.</li><li>the proposal has been <strong>returned:<br></strong>When there are remarks about or suggestions for changes to the proposal, the author of the proposal has to make necessary adjustments after the session so that another session can be scheduled to discuss changes.</li><li>the proposal has been <strong>rejected:<br></strong>When key stakeholders determine that proposed solution is insufficient to the given problem, the author of the proposal has to come up with a new solution.</li></ul><p>After the session, in each of the above cases, someone has to add information (e.g., by adding a comment) about the outcome and reasons for it.</p><h4><strong>Tips for the reviewers:</strong></h4><ul><li>Is the described problem clear and accurate?</li><li>Does the proposed solution actually solve the problem described?</li><li>Are the appropriate technologies used to solve the problem and are they used in the correct way?</li><li>Are there any anti-patterns?</li><li>Could the solution cause any problems in the long run?</li></ul><h3><strong>General tips for the process:</strong></h3><ul><li>If the problem is complicated or if it touches multiple areas, multiple engineers can be involved in the design process. There is no rule that a single engineer must work on the proposal.</li><li>If the proposal is complex, the author can schedule pre-review meetings with the required participants to discuss certain aspects or parts of the design prior to the final review.</li><li>The template can be adjusted to the needs of the project/system/company.</li><li>It is a good idea to create a Design Page for each change (that meets the process trigger factors criteria) regardless of whether the change is large or small. This provides a valuable source of information for everyone who works on the project if they have a need in the future to reference the reasons for the changes.</li><li>During your presentation of the proposal, you should pause briefly when you discuss your changes to allow attendees to ask questions or make suggestions.</li><li>The proposal should be approved by all members of the Design Review Board before the feature is implemented.</li><li>This process can be used not only for changes to the product; it can also be used by other departments to introduce changes to QA and testing systems, infrastructure, or deployment process.</li></ul><h3><strong>Summary</strong></h3><p>The Design Review Board process greatly improves the quality of the system that we are developing. Regardless of whether you are part of a small business or a big company, implementing this process will not only improve the quality of your product, but it will also enable you to recognize benefits such as enhanced control of the changes introduced to the system and it can serve as the foundation for documentation of the feature.</p><p>Author:<br><a href="https://www.linkedin.com/in/marek-leszczy%C5%84ski-22859596/">Marek Leszczyński</a> - Software Engineer</p><p>Editor/Content review:<br><a href="https://www.linkedin.com/in/angie-nelson-sr-technical-writer">Angie Nelson</a> - Senior Specialist, Content Strategy</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8145a1c1e0ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>