<?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 Sylvain Wilbert on Medium]]></title>
        <description><![CDATA[Stories by Sylvain Wilbert on Medium]]></description>
        <link>https://medium.com/@sylvain-wilbert?source=rss-e8d8744a4f7c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*fX9W7ykbal315pA7k-weFQ.jpeg</url>
            <title>Stories by Sylvain Wilbert on Medium</title>
            <link>https://medium.com/@sylvain-wilbert?source=rss-e8d8744a4f7c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:26:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sylvain-wilbert/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[My development Cookbook : Mastering the performance of my apps]]></title>
            <link>https://sylvain-wilbert.medium.com/my-development-cookbook-mastering-the-performance-of-my-apps-9cb6b494f644?source=rss-e8d8744a4f7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cb6b494f644</guid>
            <category><![CDATA[campaign-performance]]></category>
            <dc:creator><![CDATA[Sylvain Wilbert]]></dc:creator>
            <pubDate>Wed, 29 Sep 2021 14:04:03 GMT</pubDate>
            <atom:updated>2021-09-29T17:11:37.678Z</atom:updated>
            <content:encoded><![CDATA[<h3>My development Cookbook : Mastering the performance of my apps</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bS7VQBHRA5HIIA6s" /><figcaption>Photo by <a href="https://unsplash.com/@thkelley?utm_source=medium&amp;utm_medium=referral">Thomas Kelley</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h4>Mastering the behavior of an application in production requires to be able to understand how an application will react under an increasing pressure due to a higher workload from external systems, a higher number of end user’s solicitations. To achieve this goal, it is crucial to define how a system should perform to be able to measure the potential deviation and to master the End-to-end vision of a solution to ensure that the bottlenecks are accurately detected (Network, Middleware, Solution…)</h4><h3>A performance assessment campaign: What it is, and what it isn’t</h3><p>To limit the breadth of the campaign, a scope is established defined what is comprised and what it out of the scope. Of course, this could be seen dogmatic, the sole purpose being to limit the perimeter of the subject.</p><h3>What it is</h3><p>A performance assessment campaign is a process that will help developer, administrator to assess the behavior of a specific solution in terms of responsiveness and stability under a workload.</p><p>It is also a mean to investigate, measure, validate or verify other quality attributes of the system, such as scalability, reliability and resource usage.</p><h3>What it isn’t (here)</h3><p>Though you may want to address all the different aspects, it is highly recommended to assess the performance ‘within the border of your datacenter’. As such, E2E test campaign to assess the network latency is not considered in this document. Nor the E2E test integrating several external components will be considered. External components will be highly performing ‘black boxes’ that would not affect the overall performance of the system under assessment. A simple way to reach this, is to rely on mock-ups (a.k.a. functional stubs)</p><h3>It all started with some definitions…</h3><p>The following definitions will be used in this document</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eIfRIw1KuKLdX4HI8kXh2A.png" /></figure><h3>Test typologies</h3><p>Different tests can be run during a performance assessment campaign depending on the objectives pursued.</p><h4>Dry-run test</h4><p>Unitary validation test to ensure that, on a platform considered optimal (First level of tuning) the scripts and scenarios once variabilized are functionally consistent and that the measurement means are operational. This test shall be done with the ‘most-atomic’ approach:</p><ul><li>Testing a single user in a UI</li><li>Testing a single Mobility connection</li><li>Testing the interface of a Machine2Machine communication</li></ul><p><em>What’s in it for me?</em></p><p>While making this test, you can define the best time expected on the platform (A single user, single app, using the application) Making this first injection will allow you to have the first ‘optimal’ abacus of the application, allowing you to measure the deviation of the response time while injecting load. One will easily understand that</p><ul><li>This test should be done, first, with an extreme care as it is the foundation of all the outcomes that will be made during the campaign. Hint:</li><li>If you are not totally mastering the numbers you measure at this stage, or if you think that optimization can already be done on the platform…. Fix, amend, and replay the test.</li><li>Magic rarely happens. Meaning, the time measured during dry run will not be better under load even on supercharged servers. Also, it is considered at this stage that, all the response times measured are above the objectives expected by the business sponsors of the application</li></ul><h4>Load Tests</h4><p>This test is played to determine and optimize the behavior of the platform under a nominal load during the hour of peak</p><p><em>What’s in it for me?</em></p><p>This is the test that should reveal if the application has met its performance objectives. Remark: The Non Functional Requirements that the application should meet, must be formalized as a load to support during a peak hour.</p><p>This is the core of a performance campaign.</p><h4>Stress Tests</h4><p>Associated to a load test this test will determine the behavior of the platform under an abnormal (but realistic) load (X% on top of the 1hour peak).</p><p><em>What’s in it for me?</em></p><p>This is the vision on how the hosting could performed in (reasonable) exceptional conditions in a nominal mode (platform fully operational). It helps to know how and to what extent the servers will be able to absorb a very high peak during a short moment. Though it is not the “BAU” (Business As Usual) that the team has committed to reach, it will be helpful to know that you can support an overhead of load, for example after a platform outage, when the backlog of load to absorb has abnormally increased.</p><h4>Endurance Test</h4><p>Endurance testing consists in playing the load test for a very long term duration (Hours). The major interest of this test if to help the detection of the memory leaks and ensure that the platform is performing well at long range.</p><p><em>What’s in it for me?</em></p><p>This is the test you will love to play once load and stress tests are done, and it is time to go back home. Processing this test overnight will help you to discover the behavior of the platform after hours (of peak load). Especially, you will ensure: “ that there is no leak on the platform (for example a small amount of memory continuously growing over time) “ that all recycling process are correctly handled (such as automatic logout, garbage collection of objects, etc.)</p><h4>Destructive tests</h4><p>The destructive test consists in injecting an always increasing workload to determine the point of rupture of the platform/application.</p><p><em>What’s in it for me?</em></p><p>Low gain vs the effort to put in the settlement. Though every teenager wants to break the system, usually, servers are made to … serve. They don’t break if they are correctly setup, which is the basic assumption before running the test campaign. You will probably waste time to try to implement a huge load (that will probably generate a congestion on hard disks) and an incredible data pool if you want to be truly representative, that will not help to understand more the behavior of the platform. It will not be covered in this document</p><p>Remark: Iterative “Stress” Tests at different % of growth would be far more valuable to explicit the behavior of the platform under high load.</p><h4>Robustness tests</h4><p>This kind of test consists in assessing the behavior of the platform under specific conditions such as a platform partially available (To assess the High Availability capability by testing the fail over mechanism) It will not be covered in this document</p><p><em>What’s in it for me?</em></p><p>This is not a test to assess the behavior of a platform under load. It will not be covered in this document.</p><h3>Abacus</h3><p>Formalizing abacus are a major outcome of a performance campaign. It is a powerful tool to understand how your system will evolve under load. Of course, most of the time the load will not follow a mathematical formula, it is more a matter of impression based on the curve you can draw that matters. To draw a curve, you must perform several injections under the same server configuration at different loads. Once the curve can be drawn, you can iterate with a new server configuration to determine if, under the same load, the application is performing better or not. Of course, a minimal number of injections (3) is required to draw a significant curve ( The figure below show dozen of points to ease readability but reality is more on 3 to 5 injections) Abscise: The load you inject (for example the number of users) Ordinate: The system responsiveness (For example the page opening time)</p><p>Based on experience, different envelopes can be generated</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*kfZXKynZVhTaTy4MTryAyw.png" /></figure><p><strong>The system seems to have a linear deviation.</strong> This is good news; it means that the system is performing in a ‘secure zone’ and probably capable to ingest additional load with a low risk of unmetered/unpredicted decrease of the performance.(In fact, you are probably in the below situation but load is not impacting enough the overall responsiveness of the system to be visible)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*MuDPQRFFfW4sBNS0BkRyGA.png" /></figure><p><strong>The system seems to have a quadratic (or worse… exponential) deviation.</strong> This happens when you have reached the inflexion point of the system, and where load can have a strong impact on the responsiveness of the system. It is important here, to position of the load corresponding to the nominal mode (Load under the 1 hour peak) against this inflexion point</p><p><strong>The system seems to demonstrate an erratic behavior</strong> Well, not much can be conclude from any injection except… than the system seems to be uncontrollable. By experience, 2 options can raised:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*d9ZZWj8JpAKOFUy8tYhagw.png" /></figure><ul><li><strong>You are focusing on a too small scale</strong>, so that the deviations you measure are indeed contained in a frame with min/max values. In that case, it is important to measure if the high value is within the limit of the NFR of the application.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*vmHyK13XLp5quX8ITC7jhw.png" /></figure><ul><li><strong>System is totally erratic.</strong> In that case, you must optimize each subsystem before replaying the injection from the very beginning (Dry run to make a reference…)</li></ul><h3>Real over Representative</h3><p>The quest pursued in a performance campaign is to have outcomes that can explain/mimic a real situation (and/or even predict a near future).</p><p>Does it mean that the tests to setup shall be the reflection of the reality? No, being representative of the BAU (Business As Usual) is already a big step. To be representative you must determine scripts, containing steps that you will arrange in business scenario. These scenarios, when validated by the business sponsors will be the “reality” that you will inspect.</p><p><strong>Burden:</strong> An injection is performed at the sole intention of assessing the performance of an application. But as a service, an application can run on production along with other applications. A burden shall be generated to reproduce this state.</p><p><strong>External Factors/Application mock-up:</strong> A performance test is run relying on application mock-ups to avoid external side effects. Nevertheless, a closer look at external factors must be taken upon completion of the test campaign to provide a global vision. Especially the impact of a network latency must be taken into consideration for worldwide communication</p><h3>Script</h3><p>A script consists in a single/atomic use case. It involves a single type of users. It is organized as a succession of steps.</p><h3>Step</h3><p>A step is a unitary action in a script.</p><h3>Scenario</h3><p>A (business or functional) scenario is an assembly of different scripts, each of them having a specific percentage of representation.</p><h3>Injection</h3><p>An injection corresponds to the assessment of a given scenario, under a predefined load, to test a specific objectives/parameters/configuration of the application</p><p>An example,</p><p><strong>Script #1: supervisor — Dashboard follow-up</strong></p><p>Description: As an supervisor, I want to be able to connect to the platform, and follow-up the dashboard during 4 hours.</p><p>Remark: To simplify the model, only the ‘happy path’ of a script shall be considered. Exception management shall be addressed as a specific script with a very low percentage of representation in a scenario (For example: The end user has no right to use the application)</p><p><strong>Steps:</strong></p><ol><li>Opens the homepage as an anonymous user.</li><li>Opens the login form, and fill credentials (Role: Supervisor)</li><li>Upon success, Open the dashboard page</li><li>Wait 4 hours</li><li>Log out</li></ol><p><strong>Scenario #1: BAU at the usage composed of</strong></p><ul><li>Script #1: Representativeness: 40%</li><li>Script #2: Representativeness: 30% (not described in this document)</li><li>Script #3: Representativeness: 10% (not described in this document)</li><li>Script #4: Representativeness: 20% (not described in this document)</li></ul><h3>Cold start vs. Hot start</h3><p><strong>Cold start:</strong> The platform is totally reset between 2 injections. All data are reset; all server are recycled.</p><p><strong>Hot start:</strong> The platform is not reset between 2 injections. The data gathered from previous injection are considered as noise increasing the representativeness of the process.</p><h3>Phases of an Injection</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tFffr5hDGVoDq7M5G74Pzg.png" /></figure><p><strong>Ramp-up:</strong> Users are progressively accessing the platform. <strong>Steady:</strong> All users have accessed the platform at least once. This is the phase of the observation <strong>Ramp-down (optional):</strong> Users are progressively removed from the platform.</p><h3>Virtual users &amp; real users</h3><p>During an injection, virtual users are used to process a script. They are called “virtual” as they will take the identity of different users and a different set of data each time they play an instance of a script. The virtual users will play their scripts in parallel but with a small drift in time to generate randomness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jXWCkALBF8xfOisfvOu6wg.png" /></figure><h3>Think times and sleep times</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GI2HsmntMOtfJwGlR4DcUg.png" /></figure><p>When injecting a scenario two notions can influence the page rate</p><p><strong>Think time:</strong> Is the time that is waited between two steps of a script. It corresponds to the time that the user thinks before clicking on a screen.</p><p><strong>Sleep time:</strong> During an injection, each script is processed several times for a single ‘virtual’ user. The time waited between 2 runs of a script for a given virtual user is called “Sleep time”</p><p><em>Remark:</em> Reducing think time and sleep time will have an impact on the injection as ‘more pressure’ will be applied on the servers (if performing a step requires CPU computation while think times and sleep times don’t and that the scripts are played in an infinite loop during a scenario)</p><h3>Cache management</h3><p>Caching is a mechanism for the temporary storage or caching web elements, such as HTML code, statics resources such as images, css, jscript files, to reduce bandwidth usage, server load, and perceived lag.</p><p>Cache can be enabled at several different levels:</p><ul><li>On the browser’s client</li><li>On dedicated network appliance</li><li>On dedicated middleware solution, such as an ‘Edge server”</li><li>On dedicated stores or the WAS server</li><li>On specific stores from a custom code</li><li>…</li></ul><p>The injection done during test campaign will be done under the production configuration and therefore, all caching mechanisms on servers, networks will probably be enabled.</p><p>If static resources are part of the KPI they should be downloaded, otherwise injection tool shall allow to avoid such download if possible.</p><h3>Data/User pools</h3><p>The scenario parameterization based on data / user pools will ensure to have a wide range of data to use.</p><h3>Variability</h3><p>At the core of an injection is the <strong>“variabilization”</strong> It is one key of a successful script recoding. It consists in detecting in a transaction the parameter that should change for each iteration.</p><p>As an example, the login/password is a variable. Its value, taken from the user pool shall be replaced in the corresponding placeholder in a transaction.</p><h3>Correlation</h3><p>Mastering correlations is the second key of script recording. It consists in mastering the dataflow between the request and response of the different transaction.</p><p>A simple example of correlation.</p><p>User session SessionID is something that is generated by a server after the login (and as such not a variable directly taken from a data pool). But each time a new request is sent, it must be propagated. So, each time, it is not a reference to a variable, it shall be the value contain in the previous response that is resend to the next request.</p><h3>Principles</h3><p>Some golden rules can be established that should be applied:</p><p><strong>1. Keeping the control of the injection:</strong> Injecting load is not only a contest to put pressure on servers. It is an E2E Process that should be controlled at every stage (Data, pressure put on the machines) to ensure the relevance of the observations.</p><p><strong>2. Having good scripts will make great scenarios:</strong> Mastering the scenario is the cornerstone of a successful campaign.</p><p>You must master at least 3 dimensions</p><ul><li>The correspondence between the pages seen/interactions done and the transactions observed (Especially if you have AJAX asynchronous loads)</li><li>The ‘variabilization’ of a page.</li></ul><p>1: Some content, might be static (a javascript, an image …),</p><p>2: Some content will be the content of the page itself,</p><p>3: Some will be the technical elements hidden for the end user (jSessionID…).</p><p>2 shall lead to the definition of a variable linked to the data pool of the injection</p><p>3 shall lead to the definition of a variable linked to the technical variable generated by the platform.</p><ul><li>The correlation of variables among transactions. Different transaction will share some variables. Consistency of the injection will rely in the correct correspondence/correlation of these parameters.</li></ul><p><strong>3. Monitor the system under test, relying on dedicated tools</strong>: Tools that perform the load injections often enable a monitoring of the system under load. An even better option is to rely (to the most extent) on the standard monitoring tools available in the production environments to measure these elements. This will allow to be able to detect how the E2E system will perform in the real.</p><p>4. Can a machine provide the <strong>“End user perception”</strong>? The best/easiest option today is to get the end user perception from an end user. Meaning, during the injection, a real user can perform the scenario to have the perception of the response times on the loaded platform.</p><p><strong>5. Prepare, Inject, Assess, Update</strong>: Any injection shall be performed with a clear objective (Making a reference, validating an assumption, assessing the impacts of a parameters), that is formalized before the injection, the system is assessed just after the injection (and prior any others) to evaluate whether the objectives is reached or not, and as a conclusion, new recommendations shall be done to enhance the platform that will be tested in the next injection.</p><p><strong>6. One step at a time:</strong> A single parameter shall be modified between 2 injections to be able to validate its impact</p><p>7. You have clearly defined what is a <strong>“performing application”</strong>. It shall rely on a definition established before the injection and agreed with the business sponsor. It shall not be something based on impression, wishes. Especially, you can only commit to what is at your hand (for example external tiers, network latency is out of your direct control).</p><h3>Assessing the performance within a project</h3><h3>Defining the objectives</h3><ul><li>Formalize the functional performance requirements</li><li>Identify Performance Acceptance Criteria</li><li>Develop Test strategy with business sponsors (Data pools, Scripts and Scenarios, Think Time, Sleep Time)</li></ul><h3>Elaborating the scenarios</h3><ul><li>Record the scripts</li><li>Variabilize, correlate the scripts</li><li>Once scripts are validated, assemble the scenario scenarios</li><li>Define the representative dataset</li><li>Implement tools: Data set generation, Application Mockups</li><li>Validate the scenarios: Perform the dry run test</li><li>Establish the Reference response time</li></ul><h3>Governing the test process</h3><p>Test shall be followed carefully using the following minimum set of metadata:</p><ul><li>Test #: xx from 01 to NN, for example</li></ul><blockquote>DTxx: for Dry Test</blockquote><blockquote>LTxx: for Load Test</blockquote><blockquote>STxx: for Stress Test</blockquote><blockquote>ETxx: for Endurance Test</blockquote><ul><li>Application Version</li><li>Scenario Name Precise the set of Scenarios executed in this test, for any reason it can be a subset of all the scenario defined.</li><li>Start Date</li><li>Start Time</li><li>End Time</li><li>Test results: For example</li></ul><p>— How was the stability of the test (Bad / Good)</p><p>— High level comment on test results<br> — If the test is interrupted/aborted describe the reason<br> — Describe enhancement performed if some has been done<br> — Describe any issue encountered</p><ul><li>Test confidence (Low / Medium / High)</li></ul><p>Determine for each test typologies executed which test must be taken as reference: the reference test will be described in full details in the test report.</p><h3>Performing a dry-run test</h3><ul><li>Validate the scenarios: Perform the dry run test</li><li>Establish the Reference response time</li><li>At this stage, if the reference time doesn’t allow to meet the Performance Acceptance Criteria, application shall be reworked or criteria shall be revised with business sponsor.</li></ul><h3>Performing a load test iteration</h3><ul><li>Inject a scenario</li><li>Record the metrics</li><li>Analyze the outcomes</li><li>Formalize conclusions</li><li>Make recommendations</li><li>Reset the environment, if required</li><li>Apply recommendation, if required</li><li>Iterate a new load test, if required</li><li>Remark: Domains of recommendations for performance improvement</li><li>Network improvement</li><li>Caching mechanisms</li><li>Application Code changes</li><li>Other Configuration tuning</li></ul><h3>Performing a stress test iteration</h3><p>Once load tests have been finalised, stress tests shall be run to work in comparison</p><ul><li>Inject the same scenario than load tests</li><li>Record the metrics</li><li>Analyze the outcomes</li><li>Formalize conclusions</li><li>Make recommendations</li><li>Reset the environment, if required</li><li>Apply recommendation, if required</li><li>Iterate a new stress test, if required. Usually a single Endurance test is required if load and stress tests have been successfully run</li></ul><h3>Performing an endurance test</h3><p>Once stress tests have been finalized, endurance test shall be run</p><ul><li>Inject the same scenario than load tests</li><li>Record the metrics</li><li>Analyze the outcomes</li><li>Formalize conclusions</li><li>Make recommendations Usually a single Endurance test is required if load and stress tests have been successfully run</li></ul><h3>Performing a destructive test</h3><p>Out of scope of this document (See Test typologies).</p><h3>Performing a robustness test</h3><p>Out of scope of this document (See Test typologies).</p><h3>Finalizing the campaign</h3><ul><li>A final validation test based on the load test can be run to validate the different recommendations. This can be used as the reference test for the report</li><li>Formalize the performance assessment campaign report</li></ul><h3>KPI to monitor</h3><p>Different metrics can be collected to monitor a system under load. The minimal set is</p><p><strong>Application Level</strong></p><ul><li>Average Response times</li><li>Max and min response times</li><li>Standard deviation</li><li>Throughputs (Page rate)</li><li>Specific metrics depending on the application</li></ul><p><strong>MiddleWare</strong></p><ul><li>Threads (HTTP Server)</li><li>JVM Heap Analysis (Websphere application servers)</li><li>Database connections pools</li><li>SOAP connectors state</li><li>Active thread count (Was session)</li><li>Garbage collector analysis</li><li>DB health KPI</li></ul><p><strong>HardWare</strong></p><ul><li>Processes</li><li>CPU (User, System, Wait)</li><li>RAM</li><li>Disk space (disks I/O rates, transfers, read/write ratios and disk cache usage)</li><li>NetWork Data throughput</li></ul><h3>Performance assessment inan application during the Prototype</h3><p>Prototype aims at demonstrating different functional / technical concepts in a short timeframe. Shaping the industrialization of the platform, and especially putting in place the first elements to adopt a Performance First! strategy is a stake.</p><p>Obviously assessing exhaustively the performance requires a campaign involving matured code to be assessed… that is not applicable to this phase of the project.</p><p>Nevertheless, in order to integration the performance dimensions within the coding factory, an assessment of specific URL (being user URL and / or REST API) in order to establish the first times to benchmark the evolution of the different endpoints during coding phases.</p><h3>Tools</h3><p>Different tools can be used to assess Performance</p><ul><li>jMeter</li><li>SOAPUI/LoadUI</li><li>Gatling</li><li>Custom implementation</li></ul><p>For the prototype, only a custom implementation will be assessed to test a static URL and gather the response time as well as the HTTP Return Code</p><h3>Best and ‘hmm hmm’ practices</h3><h3>Best Practices</h3><p><strong>Hot start or cold start?</strong> To be comparable, each injection shall occur on a platform in a similar context. It is a good idea to perform all injections under a cold start approach, but it is a very complex process to set-up (Restore of backups on several platforms…). Hot Start, is most of the time far easier, and keep the overall integrity of the test. That said, to reset the user session on server, it can be a good solution to restart them instead of waiting for the session to be flushed (Especially if session are kept several hours)</p><p><strong>Where is the smoking gun?</strong> Each time a bad behavior is encountered, a systematic process shall be done. Response time shall be split among the different components involved. For the most impacted components, a “Application &gt; MiddleWare &gt; Hardware &gt;Network” analysis shall be run to link the findings to a specific technical bottleneck.</p><h3>Antipatterns or ‘hmm hmm’ practices</h3><p><strong>Hurray I have a bunch of numbers; I will be able to process them after, while making the report…</strong> Hmm hmm, no this is never happening. You just get numbers that you won’t be able to process. Ever.</p><p><strong>I am sure that modifying these 10 parameters will optimize the response time</strong> Hmm hmm, maybe but, let’s do it one step at a time. The best way to ensure that no conclusion can be drawn from an injection is to modify several parameters at a time.</p><h3>RACI</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yquCuXb4WB-njHYqlTX28A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cb6b494f644" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My development Cookbook : Implementing a business events collection on a business platform]]></title>
            <link>https://sylvain-wilbert.medium.com/my-development-cookbook-implementing-a-business-events-collection-on-a-business-platform-9ecd77f92623?source=rss-e8d8744a4f7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ecd77f92623</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Sylvain Wilbert]]></dc:creator>
            <pubDate>Tue, 24 Nov 2020 20:31:03 GMT</pubDate>
            <atom:updated>2020-11-24T20:31:03.155Z</atom:updated>
            <content:encoded><![CDATA[<h3>My development Cookbook : Implementing a business events collection on a business platform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tRyFiUQPlhii8a65" /><figcaption>Photo by <a href="https://unsplash.com/@neonbrand?utm_source=medium&amp;utm_medium=referral">NeONBRAND</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Architect by profession, developer by passion I have gathered my ideas, my algos, my thoughts in a cookbook. Intention is to share, and of course the recipes are very humble solutions to address the challenges I had to face. They were valid in their context especially as an answer to the trade-off “Make or Buy”.</p><p>Over the years, I have designed numerous platforms for various industries. For sure, whatever the subject is, I am regularly confronted to deliver some generic services. Among them is the business event tracking (a.k.a BET) to address the challenge: “I want to be able to have a business perception of WHO does WHAT , WHEN on my platform and WHY (sometimes)”.</p><p>At first glance, several implementations are possible: From relying on logging framework as “Log4XorY” or tools such a G-Analytics… But at the end of the day, I wanted to have a component, delivered as with a very small footprint, a maximal customization, a tight integration with BI solutions, and no charge for usage.</p><p>So I rolled up my sleeves and designed my component.</p><p>The package called <strong>“Activity Tracker”</strong> consists in 2 components to implement the <strong>traceability</strong> and the <strong>audit</strong> functions.</p><h3><strong>Collecting the events</strong></h3><p>Having seen numerous implementations of such system, I knew that the major risk relied in transforming this, into a black hole ingesting all the events (technical, business…anything) under a neat format and I have never been convinced of such an approach.</p><p>So I define my objective: “As a developer, I want to collect the business relevant activities occurring on my platform in order to propose dashboards directly understandable by business stakeholders”.</p><h4>Defining a business event.</h4><p>This is the cornerstone of the whole system. Being able to define a versatile description of a business event is the key.</p><p>A business event shall be composed of several parts:</p><ul><li><strong>Identifier</strong> : the mean to uniquely identified any event occuring on the platform</li><li><strong>Header</strong>: The elements to put the business events into context. This is a list of mandatory attributes.</li><li><strong>Details</strong>: This is the flexible repository of the business and technical elements so that the BET can cope with any types of event.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*g3STEi9O0Lfp9xr1qR8FRA.png" /></figure><h4><strong>The Identifier</strong></h4><p>It is a unique identifier to clearly define the business event. Simply, It is the <strong><em>result</em></strong> of an <strong><em>action</em></strong> to an <strong><em>object</em></strong>. Therefore, the coding syntax retained for a business event was</p><p><strong>OBJECT_ACTION_RESULT</strong></p><p>I must admit there is a bit of anthropomorphism is this description. I wanted to be able to</p><ul><li>to sort the events by object easily,</li><li>To regroup all the events occurring to different objects,</li><li>or to rapidly filter errors.</li></ul><p>Specially to ease the readability I have defined delimiter (_) that are consequently forbidden as a character within the elements.</p><p>All I had to do is to define the taxonomies for the different dimensions (Below are examples that of course need to be adapted to the situation):</p><p><strong>1 — OBJECT: The different business objects such as</strong></p><p>A business object</p><ul><li>ACCOUNT</li><li>BUSINESS-OBJECT#1</li><li>BUSINESS-OBJECT#2</li><li>…</li></ul><p>Or the zones from the site (considered as a ‘business universe’)</p><ul><li>AREA-ADMINISTRATION</li><li>AREA-ANALYTICS</li><li>AREA-ONLINEHELP</li><li>AREA-BUSINESSMAP</li><li>AREA-SITEXYZ(EXAMPLE)</li><li>…</li></ul><p><strong>2 — ACTION</strong>: Then the list of applicable verbs</p><ul><li>LOGIN</li><li>ACCESS</li><li>CREATE</li><li>FIND</li><li>LOGOUT</li><li>EXPORT</li><li>SEARCH</li><li>…</li></ul><p><strong>3 — RESULT:</strong> The list of expected results</p><ul><li>SUCCESS</li><li>ERROR-ALREADYEXIST</li><li>ERROR-INVALIDFORMAT</li><li>ERROR-NOOBJECTFOUND</li><li>ERROR</li><li>ERROR-TOOMANYENTRIES</li><li>ERROR-NOTAVAILABLE</li><li>ERROR-UNAUTHORIZED</li><li>…</li></ul><p><em>Remark</em> : to finely quality a result and especially the error, a secondary delimiter (different from the former one) is established (-)</p><p>Then creating a business event is only a composition of the former elements.</p><p>For example :</p><ul><li>Successful login of a person on the platform: <strong>ACCOUNT_LOGIN_SUCCESS</strong></li><li>Access to the administration zone is refused : <strong>AREA-ADMINISTRATION_ACCESS_ERROR-UNAUTHORIZED</strong></li></ul><h4>The contextualisation</h4><p>The business event is shall now be described with a set of mandatory attributes:</p><ul><li>Timestamp (preferably expressed as UTC Z) of the occurence of the event,</li><li>An identifier of the actor (being a user, an app, or a machine) A special care to confidentiality (GDPR) shall be done to avoid collecting sensitive personal information.</li><li>A label to describe the event. Here there is an alternative : A free label can be inserted, but I strongly recommend to request an external list of localised labels based on the value inserted here (Remark : This adds one level of liberty compared to generate this list based on the event identifier)</li></ul><p>As mandatory, this will allow to have default analytics available for the end-user even for the new coming applications.</p><p><strong><em>Optional</em></strong>: An optional instance identifier can be inserted here. It shall contain a identifier that allow to consolidate a list of business event. As an example, a session id associated to a user can be inserted. That way, by sorting with this instance id and the event timestamp, we can reconstruct the workflow done on the platform (even among different systems connected to the BET).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*RPwS0DIZGpVTtssfQvQksQ.png" /></figure><h4><strong>The details</strong></h4><p>Here the principle is to add different flexible structures in order to store all the details. Detail are split among:</p><ul><li><strong>Business details</strong>: Elements that are business related and susceptible to be interesting in term of analytic ( user profile, Business data — considering the confidentiality)</li><li><strong>Technical details: </strong>Elements that are technical such as the browser, the station configuration…</li></ul><p>This flexible zone will allow to generate refined analytics per module depending on the element sent by the data producer.</p><h3>Displaying the events</h3><p>Several options are available. The most classic would be to propose a matrix of the events. But with a very minor adaptation, nice graphics can be easily achieved</p><p>Example of the statistics made realying only on the Identifier and the Header zones</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v1f84Lt0dMw69-xpQvSHBA.png" /></figure><p>Example of the statistics made realying only on the Detail zone/Technical</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_gZ3Jt1K6oruI-ORiIyug.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ecd77f92623" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Prioritising applications to move to the cloud — 101]]></title>
            <link>https://sylvain-wilbert.medium.com/prioritising-applications-to-move-to-the-cloud-101-3ff396a9e4ed?source=rss-e8d8744a4f7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ff396a9e4ed</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[cloud-migration]]></category>
            <category><![CDATA[application-modernization]]></category>
            <category><![CDATA[cloud-journey]]></category>
            <dc:creator><![CDATA[Sylvain Wilbert]]></dc:creator>
            <pubDate>Tue, 21 Jul 2020 22:25:40 GMT</pubDate>
            <atom:updated>2020-07-22T06:55:34.792Z</atom:updated>
            <content:encoded><![CDATA[<h3>Prioritising applications to move to the cloud — 101</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NHxMErcDSfMFrQys" /><figcaption>Photo by <a href="https://unsplash.com/@dianamia?utm_source=medium&amp;utm_medium=referral">C Dustin</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><strong>Selecting and sorting applications to transition to the Cloud is a challenge</strong>. The first applications shall be sufficiently <strong>representative</strong> but in the same time with a <strong>mastered/contained complexity </strong>aligned with the pursued <strong>ambition</strong> (Modernizing thru API and/or adopting a quick transition with a minimal impact.. for example), to <strong>prepare the industrialization</strong> of all the subsequent ones.</p><p>If powerful tools, methods and consulting techniques exist on the market, a first set of dimensions to consider can be defined to jumpstart the Cloud Journey.</p><h3>Why is it so complex to select my apps ?</h3><p>A first level of complexity resides in the criteria themselves because :</p><ul><li>The list of <strong>possible criteria</strong> is merely <strong>infinite</strong>. This story will only emphasize the ones I have used on the field to categorize apps quickly but bear in mind that it should be augmented depending on your context. Just keep in mind that “less is more” and carefully selecting a small set of criteria that you totally mastered is far more efficient than relying on a vast list of elements that just blur the situation.</li><li>Some <strong>criteria</strong> are easy to <strong>measure</strong>, while others are more based on <strong>people’s impression</strong> and perception but give a <strong>good indicator</strong> of a situation.</li></ul><h3>A transition to where ?</h3><p>Moving an application to the cloud can be supported by several transition paths. But among them, 4 approaches allow to address the most usual cases:</p><ul><li><strong>Retire: </strong>Path for an application that needs to be sunset because it is not used anymore, deprecated, or the technical debt is too high and a complete re-architecture is preferred, or has an functional overlap with another application… This path requires at least to master the deprovisioning process and its impact on the technology landscape.</li><li><strong>Remain</strong>: Basically, nothing is done on the application that is kept in its current state. As an example, it is the case for an application which roadmap indicates a short-term sunset and where transition can’t be justified as an investment.</li><li><strong>Migrate</strong>: Path where an application is transitioned to the Cloud while minimizing the impact on the code. As an example, “Lift and Shift” approach or even basic ‘containerization’ fall in this path.</li><li><strong>Modernize</strong>: The quantum leap. Here, an application is transformed while transitioned in order to maximize the benefits from the Cloud (Elasticity, Resilience, Velocity…). API and microservices enablement are good examples of modernization.</li></ul><p>Managing a ponderation weight on the different criteria will allow to emphasise different target states for a given application and propose different transition strategy.</p><h3>The selection criteria : A starting kit</h3><p>To be relevant, the outcomes in term of transition shall be concluded taking the prism of <strong>ALL the criteria</strong>. Taking a single criterion will not be sufficient to determine a target transition path.</p><p>Even more important, remember that these criteria allow not only to <strong>select</strong> but more surely to <strong>order by priorities the applications to transition </strong>with a tradeoff between the effort to produce vs the benefits to get. As such, it will become a dynamic tool that permits to define a secured roadmap of the transition of an information system.</p><ul><li><strong>The age of the application: </strong>Because newest<strong> </strong>applications may not be the best candidate to initiate a transition as they have just been released and because retiring or maintaining eldest applications could be a better option than a transition</li><li><strong>The usage of the application: </strong>How often is the application used ? Because applications that are not used have a poor interest in term of transition, but intensively used ones present a main risk if they are transitioned first when the process is not totally industrialized and proven on several successful transitions<strong>.</strong></li><li><strong>The target population: </strong>How many end users? This criterion allows to prioritize application with a small population to establish the transition process or to detect a representative application to maximise the impact of the mastered transition.</li><li><strong>The vitality</strong>: How many releases per year?This criterion allows to select the application with several releases per year that would benefit from having industrialised CICD, or being modernised to adopt micro-services to reduce even more their time-to-market.</li><li><strong>The maturity: </strong>How many blocking defects per year ? This criterion allow to prioritise the correction of applications presenting blocking defects and lower the priority of stable applications that don’t present short term risk (“Why fix it if it ain’t broken ?”)</li><li><strong>The known roadmap</strong>: What is the expected roadmap?Application with promising , highly expected roadmap may be preferred to applications which roadmap indicates a sunset or a status quo in short term</li><li><strong>The impact on the Business</strong>: How critical is the application for the business? Representative transition shall include business relevant applications. Being able to prioritze them quickly but on a proven process is a stake.</li><li><strong>The apparent complexity:</strong> What is the apparent technical complexity (impression)? This criterion is a … complex one. It is a gutt feeling that the dev team has on the application. It is very hard to evaluate, but at least very complex and very simple applications are oftenly detected in an information system.</li><li><strong>The application’s type</strong>: What is the type of application? This criterion allows to promote standard applications types (like web/mobile) against proprietary/thick clients that are usually far more painful to transition</li><li><strong>The underlying technology</strong>: What is the underlying technology ? Because some technologies that are more Cloud-native, are usually a happy path!</li><li><strong>The maturity of the aimed transition path</strong>: For a type of application, what is the maturity of the transition path at customer ? This is an evolving criterion. It is the maturity of the transition path for a given application type. Because being first is always more risky, this criterion allows to industrialise a transition path on simple/less impacting applications or to promote widely used/very representative ones whenever the transition path is mastered.</li><li><strong>The external interfaces</strong>: Is the application integrated with others ? The more external interfaces to address, the more complex the transition will be….until the implementation of the underlying micro-services ontology is sufficient to act as an accelerator (because the more stable/used the interfaces will be).</li><li><strong>The richness of the application </strong>: How many use cases are addressed? The number of the use cases proposed by an application is a good indicator of the potential non regressions you can have. Richer application shall be transition on proven transition path.</li><li><strong>The DEV team</strong>: What is the size of the Dev Team? Is it usually a better option to design, implement, and validate the transition process on shorter team (or squad) to minimize reluctance to change, training…</li><li><strong>The Dev Team’s Cloud Affinity</strong>: Is the DEV team cloud-aware ? The more the dev team has used cloud, even to build new cloud native applications, the easier it will be for them to perform a transition that relies on several common cloud design patterns.</li><li><strong>The requirement for a data migration</strong>: Is a data migration required ? Of course, it is surely far more simple/less risky to transition applications/services that don’t hold data.</li><li><strong>The known concerns</strong>: Are there known concerns or issues ? Some specific problems (like an irremediable design approach) may have a direct impact on the possibility to transition an application and recommand a modernization thru rearchitecture.</li></ul><p>As a conclusion, this first set of criteria helps to sketch a first roadmap for the transition of the applications of an information system. But the outcomes of this shall not be binary, meaning there is not a single roadmap, there are many options . The retained approach shall configure the representativeness ponderations between the different criteria to be aligned first to the amibtion pursued.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ff396a9e4ed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Because Cloud is not only a technology leap…]]></title>
            <link>https://sylvain-wilbert.medium.com/because-cloud-is-not-only-a-technology-leap-112252707c6d?source=rss-e8d8744a4f7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/112252707c6d</guid>
            <category><![CDATA[modernization]]></category>
            <category><![CDATA[cloud-journey]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Sylvain Wilbert]]></dc:creator>
            <pubDate>Sat, 28 Mar 2020 21:05:10 GMT</pubDate>
            <atom:updated>2020-03-29T14:25:42.608Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U0AHqz0w2VxEAIKj" /><figcaption>Photo by <a href="https://unsplash.com/@guibolduc?utm_source=medium&amp;utm_medium=referral">Guillaume Bolduc</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Because Cloud is not only a technology leap.</h3><h4>The journey to cloud requires not only to master the technology but in order to scale at enterprise grade, other challenges will have to be addressed.</h4><p>My job consists in designing business ecosystems and for 5 years they all have in common to be hosted in “the Cloud” or more accurately on the platforms of the different Cloud Service Providers (a.k.a CSP) . This led me to implement apps under different ‘cloud’ flavors: CaaS, PaaS, FaaS, as a container, a platform, or a function.</p><p>Being able to consume instantly technology either for building a new app, or to try some new cool features (such as a cognitive augmentation) definitely changed how we will bring IT to an enterprise.</p><p>As a developer, you get the immediate rewards:</p><ul><li><strong>Instant self-provisioning</strong>: Click, click, click and my environments are available, giving access to a vast portfolio of technology.</li><li><strong>Focus on code</strong>: No server to set up, no installation, no patching, fixing. Nothing. Developers are here to develop, not install painful fixes on operating systems</li><li><strong>Elasticity</strong>: Among the patterns that are considerably taking importance, the elasticity of the platform, based on autoscaling rules is facilitating the conception of resilient platform.</li></ul><p>As such, building a new app is considerably simplified. But when scaling it at an enterprise level , to adopt the cloud journey, this simplicity will be the tree that hides the forest.</p><h3>A journey into the cloud(s)</h3><p>Transition to cloud is a journey that encompasses at least 4 different phases</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*niXOQ4duMSQOS2x-KaSOaA.png" /></figure><ul><li><strong>Phase</strong> 1: Formalizing the vision of the transition to the cloud, addressing all the different aspects of this journey. What is (are) my technology target(s)? How do I reach it (them)? Is my enterprise ready and mature to make it ? If not, how do we remediate this? What are the efforts and is it worth it at the end?</li><li><strong>Phase 2</strong>: Transitioning the existing information system either with a low footprint thru a Migration approach or to maximize the benefits from the Cloud transition thru a Modernization approach.</li><li><strong>Phase 3</strong>: Building new applications natively taking the benefits from the Cloud</li><li><strong>Phase 4</strong>: Last but not the least, managing your applications especially while running it.</li></ul><h3>KISS. Yes, of course, but…</h3><p>At first sight, you would rather want to “Keep It Simple S…” (… standing for “s’il vous plait” as we say in French, of course.).</p><p>Low hanging fruits exist and catching them is usually a common and simple way to initiate the journey</p><ol><li><strong>Assessing rapidly technology: </strong>NodeJS, Python, Java, PostgreSQL, CICD… so many capabilities, actionable at a click. Consuming IT without the complexity of painful installation processes.</li><li><strong>Incubating ideas</strong> on a fresh platform to test trendy capabilities such as a cognitive assistant, image recognition...</li><li><strong>building a brand-new application</strong> taking advantages of Microservices or cloud patterns such as service meshing, SSO integration, CICD enabled...</li><li>even <strong>migrating existing applications</strong> under a “<strong>lift and shift</strong>” flavor (meaning taking the application and moving it with the minimal (if none at all) modifications)</li></ol><p>This is definitely doable in days. But…</p><p>For companies with the ambition to embrace a global strategy, making cloud pervasive across the enterprise requires to balance between the constraints of mastering the existing system, in all its facets to leverage the assets generated since years including resolving technical debt, and the disruption enabled by these new approaches, the new opportunities brought on the table by the Cloud.</p><p>As such, serenely adopting the cloud requires then to align several planets without dogmatism. The awareness of all the dimensions involved is a must, but the level of implementation depends of course of the starting point and the ambition. It is the objectives of the above <strong>Phase 1 — Cloud advisory</strong> to assess the current level of maturity, the target to reach for the different dimensions (technical or not), before defining the timely-manner transition paths.</p><h3><strong>Technology</strong></h3><p>In fact, the journey to cloud is also a technology leap. This dimension is a mandatory exercise as it establishes the cornerstone of a Cloud transition: The platform.</p><p>Several aspects require to be mastered to build a strong ecosystem. If several technology patterns coexist in the different CSP to embrace a broad variety of situations, my experience on the field tends to raise the c<strong>ontainer</strong> approach as the best trade-off currently available in early 2020. Said like this, it may be seen as an incantation, but:</p><ul><li>As software units, packaging the code along with its dependencies (code, runtime, system tools, system libraries and settings), containers can natively be run on several computing environments, making <strong>abstraction of the underlying infrastructure</strong>.</li><li>Containers are placed in a technology ecosystems that augment them: <strong>Orchestration</strong> (With Kubernetes that is a standard) , <strong>Service Meshing</strong> (such as Istio)… These augmentations allow advanced manipulations of the containers increasing drastically the global resilience of the system, while reducing the risk of deployment (with concepts such as Immutability, and progressive deployment patterns- Blue Green, Canary).</li><li><strong>Containers are versatile</strong>: They can host a whole application (fairly useful as a first step while migrating existing application) or be dedicated to an atomic microservice</li></ul><p>The architecture and technology vision will be split in</p><ul><li><strong>Cloud platform architecture</strong> to master the low-level conception of the platform (Containers clusters, tripod resiliency enablement)</li><li><strong>Application architecture </strong>to formalize the conception of the containerized applications. Several architectural references may coexist for example, one for the migrated applications, one for the microservices architecture.</li></ul><p>Remark: Reality is always more complex that you may wish. If containers are really a strong backbone to build robust information system, PaaS (Platform as a Service) can have strong advantages: Being able to deploy in seconds a robust, reliable, secured database or an IAM solution, is really astonishing. It also meets some promises supported by the cloud such as Instant provisioning, Focus on code… I have seen teams, starting to code on the project kick-off day without caring to all the underlying plumbing (Installation, Configuration, Back-up, run). If very seducing, enterprises willing to master the entire ecosystem might want to propose this ready-to-use service based on containers, but they will have to cope with the complexity of implementing, deploying and then managing these services (Data storage, Performance, Elasticity, Run…)</p><h3>Methods and Tools</h3><p>Here, <strong>methods </strong>are all the processes and best practices used to build and manage applications in the Cloud, while <strong>tools</strong> are artifacts enabled to support the methods. The list of each of them is infinite but some major areas arise.</p><h4>Adopting an Architectural Model such as C4</h4><p>The <a href="https://c4model.com/">C4 model</a> is a method for visualising software architecture thru 4 dimensions : Context, Containers, Components and Code. It is a fairly simple approach to depicts an architecture on its core elements. On one side , I really love the pragmatism of this approach especially for non-UML aware teams, on the other side, I am really missing some artifacts that I find critical such as the non-functional requirements, or even more important the architecture decisions so I tend to prefer a traditional architecture dossier. I have formalized a template covering the major elements of conception of an architecture dossier directly in a github repo : <a href="https://sylvainwt.github.io/ArchitectureTemplate/">Access to the Architecture template on GitHub</a>.</p><h4>DDD (Domain Driven Design)</h4><p>DDD (Domain Driven Design) is a design approach aligning the software conception with the business’s domains, needs, and strategy. DDD proposes to model the problem in a domain (relying on a common “ubiquitous” language in a bounded context) that should be solved by the software, on two levels: strategic and tactical.</p><h4>Documentation as Code</h4><p>You may want to have a look at my story <a href="https://medium.com/@sylvain.wilbert/writing-architecture-dossiers-with-markdown-in-a-git-repository-to-make-it-an-effective-artefact-f20634edc0da">here</a></p><h4>CI/CD (Continuous integration Continuous Deployment) :</h4><p>One benefit expected from the cloud that is usually emphasized is the <strong>“TTM* reduction”</strong>, as for being able to shorten the delay for an idea to become a sound reality in the hands of the end-users. Almost a buzz-word. But what can be understand behind it, is a strong industrialization of the development process (where a “culture” of test is reinforced, shifting this concern on the ‘left’ of a Dev(left)-Sec-Ops(right) approach), along with a risk-mastered deployment (enabling a progressive deployment of the code thru quality gates) process, built on an atomic (such as micro-services to contain the impact of an evolution of a piece of code) architecture</p><p><em>*TTM: Time To Market</em></p><h3><strong>Governance</strong></h3><p>Mastering the transition to cloud requires the settlement of a governance within a Cloud Competency Center with the ambition to provide a structure of processes and organization.</p><p>At a coarse grain level, several governance bodies need to be setup, each of them responsible of a specific Cloud stake. Among them (others can be defined for sure) can be emphasized:</p><ul><li><strong>The Board of Direction: </strong>This board is responsible for the definition of the overall Cloud transformation strategy and in charge of all the arbitrations raised by the other bodies.</li><li><strong>The Cloud Transformation Board: </strong>This governance body is responsible for controlling, forecasting the cost induced by the transformation of the portfolio. As such, it is responsible for evaluating and monitoring the KPI of the transformation process.</li><li><strong>The Architecture Board:</strong> This governance body is in charge of defining the technology vision to support the business strategy. As such, they have to define the reference architecture (being at infra or application level). An extra challenge will to ensure a tight integration with the existing information, especially when will come the conception of the resiliency patterns of the end to end information system (avoiding ‘single point of failure’ exposed in legacy system where resiliency was not managed in the same way).</li><li><strong>The Risk, Security &amp; Compliance Board: </strong>This governance body is responsible of the alignment and conformance of the cloud processes with the business domain</li><li><strong>The Innovation Board: </strong>This governance body<strong> </strong>is responsible of the (emerging or accelerating) innovation enabled by a cloud platform. Rapid provisioning, vast technology capabilities, openness to external tiers are the dimensions to master.</li><li><strong>The Service Management Board: </strong>This governance body is<strong> </strong>responsible for the execution of the proposed service (24x7 SLA, mastered progressive deployment, Incident management, Run, Support to end user (among them the development team))</li></ul><h3>Culture and Organisation</h3><p>Of course, cloud can be adopted without changing anything in the current organisation. Applications will be delivered and run. But….</p><p>...But, by adopting some new perspectives, new cultural traits, the benefits generated by the cloud could be largely amplified.</p><h4>Valorising the usage of the platform</h4><p>Valorising (if not monetizing) the usage of the exposed services (especially APIs) and the data is a game changer. It will emphasize the criticality, the importance of the APIs (seen as a product rather than the extension of an existing app) and more largely of the urbanisation of the Information System over the construction of GUIs (applications). Audiences of a correctly urbanized APIs is infinite. Not only benefiting from a rationalised IS, it will multiply the consumers (internal and external apps), and once adopted will provide KPI to decommission less used services and invest the ones largely used.</p><h4>Incubation and innovation</h4><p>Hopefully, mankind did not wait for the Cloud, to innovate and incubate ideas. But Cloud is generating lots of accelerators.</p><ul><li>Being able to consume service ‘on the shelf’ at a click of the mouse from a vast <strong>Service Catalogue</strong> is real vector of innovation. I have numerous examples of applications that have tested a chatbot as a first flavour of IA before scaling to more business-oriented use cases.</li><li>Exposing a <strong>Developer Portal</strong> , where technical communities of the enterprise can contribute to the elaboration of a software is a strong enabler in term of team synergy while augmenting the resulting quality of the implementation (bugs are widely chased) and its adoption (“Eat your own food”) within the entreprise.</li><li><strong>Hackathons</strong> are so easy to setup, when it takes seconds to provision environments ready to code to users. I am amazed how, with few directions, non-technical participants of these hackathons are able to assemble ideas into an actionable app.</li><li><strong>Openness</strong>: Large organisations can be tempted to perform their innovation activities internally within the boundaries of the enterprise. By exposing and/or consuming services internally and externally, a company can expand the breadth of the innovation, freshen its vision and reduce the <em>‘We have always done it like that, and pardon me, it worked for XX years’</em> pattern.</li><li>As a strategy, innovation process and organisations can be adapted to enable a “funnel” approach where unlimited ideas are tested in an incubators and/or within a project (thru a dedicated innovation sprint, for example) and only the ones that are able to expand, drive a technical community around them, to scale into sound applications, remain.</li></ul><h4>Agile (at Scale) in a cloud factory</h4><p>Application delivery models need to evolve in order to gain in flexibility, because promises such as the TTM reduction can’t be fulfilled only by relying on technology. Embracing agility as a delivery model is strong enabler, as it will allow a dynamic adaptation of the solution to the richess of the business situation and adjust the decisions constantly. Moreover, it will be a vector for innovation for new products and services.Several models and frameworks exist to support this challenge, such as SAFe or the Spotify model</p><h3>Cloud Service Management and Operations</h3><p>This one rocked my world. Since 20+ years, my teams are developing software that we transfer to operation teams to run it. Then , after deploying it on a Sunday to limit the service disruption to end users, they were, from time to time, forced to solved deployment problems during sleepless nights so that end users are not affected (though less true in a worldwide context). With Cloud, I have seen new roles emerging, such as Site Reliability Enginneer to automate, industrialise, impact the features of an app to have an evermore manageable applications. In the same time, new patterns such as progressive deployment allowed to limit the impact of a failure to an early-adopters community, accepting that “Failure as normal in a system”.</p><p>On top of this, CSMO is supported by a new generation of tools able to correlate, anticipate, avoid failures and share the findings vastly not only to operations teams but up to the developers in order fix issues with a maximal velocity.</p><h3><strong>Cloud or not Cloud, that is the question… really?</strong></h3><p>One could, with reason, argue that most of the above elements are not specific or limited to “Cloud”.</p><p>It has been years that we have in our enterprises</p><ul><li><strong>Design Authority committees</strong>, tending to urbanize information systems as isolated and independent (web and then micro) services,</li><li><strong>Architects</strong> <strong>designing</strong> secured platforms resilient to workloads</li><li><strong>Developers implementing</strong> loose coupling patterns relying on efficient Integrated Development environments</li><li><strong>Consultants inventing</strong> features relying on Design thinking as a cocreation with end-users</li><li><strong>Agile experts delivering</strong> the solution in a timely manner strategy, focusing on the value generated</li></ul><blockquote>What Cloud brings on the table is that enabling accordingly ALL of these disciplines, generates an amplification of the resulting benefits.</blockquote><p>The list could be very long but, as a first intention:</p><p>1 — The resulting software, focused on the value it brings to it end-users, is delivered with a high velocity (as all atomic part can be delivered in parallel with a low regression footprint) thru an industrialized CI/CD. Technology can be consumed rapidly to enrich an app with features (A simple example is the addition of virtual assistants to support an application deployment. Though peripheric, it brings lots of value to a deployment with a low entry-level effort.</p><p>2 — The deployment risk will be reduced as</p><ul><li>The impact is limited by design to the microservices. External tiers, as long as they cope with the interface contract are not affected</li><li>Deployment is not a vertigo depending on the number of end user impacted. Mastered progressive deployment allow to serenely bring a feature to its end-users mastering the targeted population.</li><li>Natively, the immutability of a container allows to quickly rollback to a previous stable situation in case of trouble (No painful iterative, installation/deinstallation that you do in the stress of the service rupture)</li></ul><p>3 — The platform itself! Robust, resilient, elastic, easy provisioning, low footprint in term of CSP… Cloud platforms clearly generate an agile and flexible information system.</p><blockquote>The Cloud destination counts, but as well as the journey that takes us so far.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=112252707c6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Writing architecture dossiers with markdown in a git repository to make it an effective artefact]]></title>
            <link>https://sylvain-wilbert.medium.com/writing-architecture-dossiers-with-markdown-in-a-git-repository-to-make-it-an-effective-artefact-f20634edc0da?source=rss-e8d8744a4f7c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f20634edc0da</guid>
            <category><![CDATA[uml-diagrams]]></category>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[markdown]]></category>
            <category><![CDATA[it-architecture]]></category>
            <dc:creator><![CDATA[Sylvain Wilbert]]></dc:creator>
            <pubDate>Mon, 10 Feb 2020 10:59:36 GMT</pubDate>
            <atom:updated>2020-02-11T16:23:17.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IkreeGe_wrcJbjDl" /><figcaption>Photo by <a href="https://unsplash.com/@headwayio?utm_source=medium&amp;utm_medium=referral">Headway</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><strong>Writing architecture dossiers with markdown in a git repository to make it an efficient artefact</strong></h3><h4>An architecture dossier is a key documentation to master the conception of a solution. Relying on the same tools than developers, to write it will transform it into a very efficient artefact at the core of an implementation</h4><p>Coding is in my genes. I just love to code. For 20 years, I have used many code editors from notepad, Atom, Eclipse, Rational Software Architect Designer, Visual Studio Code… I am still amazed how ideas become applications only relying on simple text.</p><p>Gaining expertise, I faced the challenge to share my ideas, my conception of the apps, with my peers. I started to write architecture dossiers. Easy! Frameworks, UML, word processors, all the elements are available.</p><p>This was the beginning of the nightmare.</p><p>Not only, I was passing hours to make diagrams, sometimes with PowerPoint, sometimes with Visio, but I was also desperately trying to make my architecture dossier attractive with fonts choice, colors to reinforce my message.</p><p>Thinking that my job was done, came the time of the sharing. Anyone trying to use revision marks on such document rapidly figures out how inefficient it is in this context. Colors everywhere, comments, ambiguity with the version of the document …</p><p>At this very moment, you realize that you have produced the <strong>ultimate inefficient document</strong>. Takes your time, wastes the time of your peers, with a perfectible level of quality, never reflecting accurately the code implemented.</p><p>Even more paradoxical, coders have sorted out these problems for a very long time to gain in efficiency, by having the right tools, gathering all the required information at a click of the hand:</p><ul><li>Versatile IDEs allow to manipulate seamlessly information in the same environment (code, configurations…)</li><li>Markup languages allow to structure the information</li><li>SCM allow to master the collaboration among team members.</li></ul><p>The missing link was to dispose a publishing language: <em>Markdown</em>.</p><p>Relying on Markdown changed the way I was making architecture. I was able to publish my architecture dossiers as assets of the project relying on my developer’s tools.</p><p>So many advantages:</p><ul><li><strong>Focus on content</strong>: Markdown syntax forces the author to focus more on content than colors.</li><li><strong>A development asset</strong>: Architecture dossier is done with the same tools that the implementation so that you have it at a click of your code.</li><li><strong>Collaboration</strong>: Have you ever tried to collaborate on a document with revision marks? If so, you will adore to use git to collaborate effectively on this document.</li><li><strong>Everywhere</strong>: Publishing on git allow a rapid publication of the content anywhere, anytime in seconds.</li><li><strong>All-in-one</strong>: Even diagrams can be scripted with add-ons.</li></ul><h3>Getting Started</h3><p>I have formalized a template covering the major elements of conception of an architecture dossier directly in a github repo : <a href="https://sylvainwt.github.io/ArchitectureTemplate/">Access to the Architecture template on GitHub</a></p><p>Formalizing the architecture? Fork the repo, update the files, add, commit, push. Et voila!</p><p>Rather than manipulating a single document, chapters are split in separated files to be produced with agility:</p><ul><li><strong>Glossary</strong>: Lists all the terms acronym used across the document. An additional spreadsheet is provided in order to ease the formalization of the different terms and acronyms.</li><li><strong>System Context</strong>: Depicts the systems as a whole and establishes all the interactions it has with the external world (Human or systems). A default PlantUML file is provided to sketch the diagram.</li><li><strong>Use Case Model</strong>: Allows to finely catch the usage of the system. A default PlantUML file is provided to sketch the diagram.</li><li><strong>Requirements</strong>: List of all the non-functional requirements that need to be covered (the “How shall perform the application”).</li><li><strong>Component Model: </strong>Blueprint of the main part of the solution. Different types of diagram can be established (Static or dynamic such as a sequence diagram).</li><li><strong>Architecture Overview: </strong>This important diagram allows to easily communicate on the architecture of the application.</li><li><strong>Architecture Decisions: </strong>This crucial chapter consolidates all the decisions taken with the associated context and justification in order to allow a full traceability.</li><li><strong>Deployment Model: </strong>This chapter explains how the architecture will be deployed physically. It can be drastically reduced while using a container approach on Cloud dur to the abstraction of the infrastructure.</li><li><strong>Data Model: </strong>This chapter depicts how the data will be organized. It is fairly common to have specific tools in the hands of the data architect that generate automatically this diagram.</li><li><strong>COTS List: </strong>The list of all product “off-the-shelf”, commercial or not, that are used in the solution.</li></ul><p>Of course, as any method, it shall not be applied with dogmatism. Instead, a customization phase shall be processed to adapt the template to its need (From adding/removing some chapters, to an adaption to align on the artifact from the <strong>C4 model</strong> by focusing on the Context, the Components, the Container (as deployment artifacts))</p><h3>Add-ons to facilitate the formalisation of the document</h3><p>Four additional tools have been formalized to maximize the efficiency:</p><ul><li><strong>Diagrams</strong>: Tons of nice graphics processors exist on the market (online, to be installed on your laptop). The one I use, is PlantUML. This tool allows to adopt the same strategy for the diagram: Each diagram is “described” as a text with a very intuitive syntax, and the PlantUML (a simple java app) can generate the diagram (directly on your laptop or within a CICD pipeline)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*DYagNNKOavHg0GgBIXuiPA.png" /><figcaption>Diagrams are ‘described’ with a simple syntax</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/932/1*EcywQttbioIsIv44ghXcIQ.png" /><figcaption>PlantUML diagrams to sketch the System Context Diagram</figcaption></figure><ul><li><strong>Table</strong>: Adopting the best tools remains a strong factor of efficiency. No doubt that Excel is a very efficient tool while making tables. In order to facilitate the formalization of the architecture dossier, MS Excel spreadsheets are provided in order to capture the information (for example: The list of Nun functional Requirements) and a specific sheet is included in order to translate it automatically to markdown. This text can then be pasted into the markdown file.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xwpz4b7xNqCfYD4v-6z_tQ.png" /><figcaption>The requirements can be filled as an Excel Table</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*0qxlWQ6heRTFqmy4n1M8QQ.png" /><figcaption>Helpers in the file produce the markdown</figcaption></figure><ul><li><strong>Publishing</strong>: Several git distributions allow to encapsulate markdown files in nice web template. As an example, GitHub Pages allows to select different rendering templates to display the markdown template. It has to be note that some constraints might be induced (such as enabling a public access to the dossier)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/501/1*vlgetF2WsYPDo5Mxbv6XUg.png" /></figure><ul><li><strong>Exporting</strong>: Even if I am totally convinced that an architecture dossier shall be shared online and consulted directly from the git repo to ensure to have the freshest information, the “principle of reality” leads to propose an export feature in order to be able to share the document as a Word document (.docx) or a PDF file. Again, several exporting processors are available. I am using pandoc as it allows to apply a customizable word template and export the files with a high level of fidelity.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WK8t4pw0BBxsFDBdNJlMpw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f20634edc0da" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>