<?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 Rainer Stropek on Medium]]></title>
        <description><![CDATA[Stories by Rainer Stropek on Medium]]></description>
        <link>https://medium.com/@rainer_8955?source=rss-764a02e838fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yBIOFcIT665t5CFQ.jpg</url>
            <title>Stories by Rainer Stropek on Medium</title>
            <link>https://medium.com/@rainer_8955?source=rss-764a02e838fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 21:24:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rainer_8955/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[Learning Angular by Writing Games]]></title>
            <link>https://medium.com/@rainer_8955/learning-angular-by-writing-games-c6aa8b9a2248?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6aa8b9a2248</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Mon, 03 Oct 2022 08:26:18 GMT</pubDate>
            <atom:updated>2022-10-08T18:11:04.886Z</atom:updated>
            <content:encoded><![CDATA[<p>This semester, I have been giving an Angular Fundamentals course at the HTBLA Leonding, an Austrian school for computer science. The participants are between 17 and 18 years old and in their 3rd year of programming-related education. They already have basic knowledge of coding and HTML/CSS.</p><p>This year I decided to try something new. Instead of demonstrating the fundamentals using the usual “Todo” app or reusing Angular’s “Tour of Heroes”, we are going to learn Angular by writing simple games. This way, learning will hopefully be more fun.</p><p>In this article, I collect the lecture recordings of my Angular course.</p><ul><li>Part 1: Creating an Angular App</li></ul><h4>Part 1: Creating an Angular App</h4><p>The first game we are going to build is a TicTacToe (aka Connect Three) game. In the first video, we learn how to create an Angular project and add the main menu (including Angular Routing fundamentals).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F6W-tYficRwE%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D6W-tYficRwE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F6W-tYficRwE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/160d564f36ebe99c5e642d22259fb8ca/href">https://medium.com/media/160d564f36ebe99c5e642d22259fb8ca/href</a></iframe><h4>Part 2: Creating the Board with HTML and CSS</h4><p>In the second lesson, we generate the TicTacToe board using relatively simple HTML and CSS. The goal is to recap HTML/CSS basics, with no fancy CSS grid or flex layout (will come later).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FSYSELsFaN7U%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DSYSELsFaN7U&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FSYSELsFaN7U%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/5272ea2d8629d5211a1af3db794253cd/href">https://medium.com/media/5272ea2d8629d5211a1af3db794253cd/href</a></iframe><h4>Part 3: Basic Angular Data Binding</h4><p>It is time to add behavior to our TicTacToe game. In this lecture, we learn about binding fundamentals (property bindings, event bindings, class bindings).</p><p>⚠️ If you are following this course and you are learning Angular with it, make sure to apply the knowledge you gathered in the <em>Connect Four</em> example (<a href="https://classroom.github.com/a/xpWHxIGm">https://classroom.github.com/a/xpWHxIGm</a>). You can try to apply what you learn after each of the following lectures. Do the examples on your own for practice purposes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FKHbdoc-xGSg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DKHbdoc-xGSg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FKHbdoc-xGSg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c57b65e2e5bfd9cae3ecae5c3f2f99d/href">https://medium.com/media/4c57b65e2e5bfd9cae3ecae5c3f2f99d/href</a></iframe><h4>Part 4: Little Bit of Background for Angular and TypeScript</h4><p>In this lesson, we dive a little bit deeper into Angular and TypeScript. You will learn what happens when you start your app using <em>npm start</em>. Additionally, we take a closer look at TypeScript classes, variables, and data types. The lecture ends with an exercise that I recommend students to do on their own: Implementing the TicTacToe winner detection algorithm.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FxS5OSQpdOrI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DxS5OSQpdOrI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FxS5OSQpdOrI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c6f2ff4152ca4045c96f643ff41b000b/href">https://medium.com/media/c6f2ff4152ca4045c96f643ff41b000b/href</a></iframe><h4>Part 5: Introduction to AI-Assisted Coding</h4><p>Time for a little side-step: Let’s talk about recent developments in AI-assisted coding in general, in particular <em>GitHub Copilot</em>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FBxjoiH3TurA%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DBxjoiH3TurA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FBxjoiH3TurA%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a0a94ed23b486e2e96d89bd1ed527d50/href">https://medium.com/media/a0a94ed23b486e2e96d89bd1ed527d50/href</a></iframe><h4>Part 6: Structural Directives</h4><p>Let’s take the next step in terms of data binding: We explore how structural directives work (<em>*ngFor</em>). We use them to greatly simplify the amount of HTML code we have to write for creating the TicTacToe board.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F66hxiLRjqTw%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D66hxiLRjqTw&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F66hxiLRjqTw%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/ed887865a2e12a7aa2c53c9b7c6ac99a/href">https://medium.com/media/ed887865a2e12a7aa2c53c9b7c6ac99a/href</a></iframe><h4>Part 7: TypeScript Interfaces</h4><p>When we added structural directives, we used TypeScript interfaces. There is a lot to say and learn about interfaces in TypeScript. Let’s explore the most important aspects.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FtCa9Xyvpi6Y%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DtCa9Xyvpi6Y&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FtCa9Xyvpi6Y%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/0b47572bafff72f976708112da9e003d/href">https://medium.com/media/0b47572bafff72f976708112da9e003d/href</a></iframe><h4>Exercise: Halloween Puzzle</h4><p>TicTacToe is a nice game, but not a particularly interesting one. Let’s interrupt our exploration of the Angular universe and do an exercise. Here is the scenario for our exercise: You are working in a game development agency. A customer approaches you who has developed a prototype for a Halloween-themed mini-game. You can find it at <a href="https://stackblitz.com/edit/coderdojo-halloween-puzzle">https://stackblitz.com/edit/coderdojo-halloween-puzzle</a>. The prototype uses plain HTML, CSS (this time slightly more advanced compared to our TicTacToe sample), and TypeScript, no Angular.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*qVed1wqf5ch5_jRriYwcqw.png" /></figure><p>⚠️ It is your job to rebuild the game using Angular. You can reuse whatever you need from the prototype (including CSS, the HTML structure, and even aspects of the existing TypeScript implementation). Do the example on your own for practice purposes.</p><h4>Part 8: Introduction to Angular Services</h4><p>Angular Components are representing visual UI components. Core logic (e.g. business logic, data access logic, etc.) shouldn’t end up in components. Services are a better place for it. In this lecture, we do the first steps with Angular Services.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fb3pEsiw-xdg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Db3pEsiw-xdg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fb3pEsiw-xdg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/59e90b4bd34a2ef4d32670a5d3ee7b24/href">https://medium.com/media/59e90b4bd34a2ef4d32670a5d3ee7b24/href</a></iframe><h4>Part 9: Angular Services and Pipes</h4><p>In the previous lecture, we learned some fundamentals about services. It is time to put that into practice in our little game. We move logic into a service and with that, we get a much cleaner program structure. We can make it even better by introducing Angular Pipes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fm1zIRTZjcA8%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dm1zIRTZjcA8&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fm1zIRTZjcA8%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fe5043ad449eb8f6cfbf05474579265/href">https://medium.com/media/3fe5043ad449eb8f6cfbf05474579265/href</a></iframe><h4>Further Lectures…</h4><p>The course is ongoing. New recordings and exercises will be added as the course progresses.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6aa8b9a2248" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gracefully Shutdown C# Apps]]></title>
            <link>https://medium.com/@rainer_8955/gracefully-shutdown-c-apps-2e9711215f6d?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e9711215f6d</guid>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[dotnet-5]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 11:15:45 GMT</pubDate>
            <atom:updated>2020-09-09T06:55:25.709Z</atom:updated>
            <content:encoded><![CDATA[<h3>Graceful Shutdown C# Apps</h3><p>I recently had a C# application that needed to gracefully shutdown a long-running process when the application is stopped by the user (<a href="https://en.wikipedia.org/wiki/Signal_(IPC)#SIGINT">SIGINT</a>/Ctrl+C) or <em>Docker</em> (<a href="https://en.wikipedia.org/wiki/Signal_(IPC)#SIGTERM">SIGTERM</a>/<a href="https://docs.docker.com/engine/reference/commandline/stop/">docker stop</a>). I didn’t know by heart how to do that, so I decided to write it down in this post.</p><h3>Demo Program</h3><p>Here is a short demo program (C#, .NET 5.0). <em>SIGINT </em>is caught using <em>Console.CancelKeyPress</em> and <em>SIGTERM </em>using <em>AppDomain.CurrentDomain.ProcessExit</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/66a0235cd1be75e7374cc781c36a71d3/href">https://medium.com/media/66a0235cd1be75e7374cc781c36a71d3/href</a></iframe><h3>SIGINT</h3><p>If the user runs the program shown above locally and presses Ctrl+C, the output is:</p><pre>Waiting for SIGINT/SIGTERM<br>Received SIGINT (Ctrl+C)<br>Good bye<br>Received SIGTERM, ignoring it because already processed SIGINT</pre><p>The output is the same if the user runs the program interactively in a Docker container (<em>docker run -it sigintterm</em>) and presses Ctrl+C.</p><h3>SIGTERM</h3><p>It the user runs the program in a detached Docker container (<em>docker run -d sigintterm</em>) and stops it using <em>docker stop</em>, the output is:</p><pre>Waiting for SIGINT/SIGTERM<br>Received SIGTERM<br>Good bye</pre><p>In the case of SIGKILL (e.g. <em>docker kill</em> without <em>signal</em> option, <em>docker rm -f</em>), neither <em>Console.CancelKeyPress</em> nor <em>AppDomain.CurrentDomain.ProcessExit</em> is triggered.</p><h3>Generic Host</h3><p>If you use .NET’s <a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/host/generic-host"><em>Generic Host</em></a>, you do not need to take special precautions for handling SIGINT or SIGTERM. The generic host deals with it automatically. Here is a sample program:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb30019f7eaf6e46ea675bc500587ae7/href">https://medium.com/media/fb30019f7eaf6e46ea675bc500587ae7/href</a></iframe><p>The output is the following when pressing <em>Ctrl+C</em> (locally or in an interactive <em>Docker </em>container) or stopping a detached <em>Docker</em> container in which the app runs:</p><pre>Starting service<br>Stopping service<br>Background task gracefully stopped<br>Service stopped</pre><h3>Dockerfile</h3><p>For the sake of completeness, here is the Dockerfile I used for my tests:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/daf9ec2730735a2efe1e33ff19d7c685/href">https://medium.com/media/daf9ec2730735a2efe1e33ff19d7c685/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e9711215f6d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Do I Run for a Seat on the .Net Foundation Board of Directors]]></title>
            <link>https://medium.com/@rainer_8955/why-do-i-run-for-a-seat-on-the-net-foundation-board-of-directors-ba50bf5dbdaf?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba50bf5dbdaf</guid>
            <category><![CDATA[microsoft-net-foundation]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Thu, 16 Jul 2020 16:26:23 GMT</pubDate>
            <atom:updated>2020-07-16T16:26:23.487Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Do I Run for a Seat on the .Net Foundation Board of Directors</h3><p>In a few weeks, the <a href="https://dotnetfoundation.org/">.NET Foundation</a> will elect their next Board of Directors. I applied for a spot on the election list and I am glad and honored that I got into the final round of 18 candidates. In this article I would like to write about why I run for a seat and what would be important for me. If this article seems too long for you, you can read a <a href="https://dotnetfoundation.org/about/election/campaign-2020/rainer-stropek">summary of my application on the .NET Foundation website</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sSM4QCLgAzM76dR725FBMw.jpeg" /></figure><h3>Why Am I Running?</h3><h4>Passion for Communities</h4><p>My home country is Austria (Europe). It is well known for many things like Mozart, the Wiener Schnitzel, mountains, but one thing is characteristic for Austria which many people might not know: Community work is deeply rooted in our society. Nearly everybody is engaged in at least one club, many people work in multiple ones. Music, sports, art, red cross, fire brigades, boy scouts, environmental protection organizations — we are a small country of eight million citizens and we have about 130,000(!) volunteer-led clubs. Devoting time to non-profit community work is something that I grew up with and value a lot. So the idea of Open-Source Software and sharing knowledge and ideas in a community of developers feels very natural to me.</p><p>.NET has been an important part of my work a a software developer since its very beginning. I started using it when the first technical previews came out and ever since then I have been building software with it. I loved it when Microsoft decided to convert .NET into an Open Source platform. When I look at the <a href="https://dotnetfoundation.org/projects">.NET Foundation project list</a>, I know a large part of the projects and I have been using many of them for years.</p><p>The .NET Foundation brings together two things I am passionate about: Spending time with friends in a non-profit community and enjoying writing code with .NET. When I heard about the election of the foundation’s Board of Directors, it was clear to me that I wanted to offer my help.</p><h4>Coding With Kids and Teenagers</h4><p>Obviously, supporting people who build and maintain .NET-related Open Source projects is the primary goal of the .NET Foundation and I am ready to contribute my share in that area. However, my passion is working with communities in general, and kids and young coders in particular. This is where I will put a focus on if I would really get the chance to influence the activities of the .NET Foundation.</p><p>I have been working as a trainer for over 25 years. In the last five years, coding with kids and young adults has become increasingly important for me. I have learned that they approach learning languages and frameworks very differently compared to professional developers. They want to playfully, creatively explore technologies instead of starting with seemingly boring, theoretical concepts. They dream about so many cool things that they want to build and they are looking for platforms and tools with which they can start immediately.</p><p>As professional developers, we know how important a solid understanding of the underlying concepts is in order to really master a platform like .NET — and this is how we teach coding. We start from the ground up. We spend so much time discussing details — and this makes it look so complicated from a beginners perspective.</p><p>It would make me happy if I could influence communities that create learning content and organize meetups and conferences so that they dedicate a part of their work and ingenuity in fascinating kids for software development. As an industry, we suffer from a lack of junior coders. Additionally, a lack of diversity is a real problem in most development teams. I strongly believe that we need to approach kids and young coders differently compared to older students and professionals. Organizations like the .NET Foundation can use their influence in that direction and I would hope that I could contribute a little bit to that process.</p><h3>My Prior Background With the .NET Foundation</h3><p>To be honest, I don’t really have one. Of course I know the foundation’s goals, but I have not yet played an active role in this organization.</p><p>Nevertheless, the .NET Foundation influences my life as a professional software developer a lot. I spend the majority of my time building software with C#, .NET, and many of the Open Source libraries that the .NET Foundation supports. This motivates me a lot to become more active and dedicate a part of my time to this organization.</p><h3>My Contributions to the .NET Community</h3><p>Recently, I received the Microsoft <em>Most Valuable Professional </em>(MVP) award for the 10th time (<a href="https://mvp.microsoft.com/en-us/PublicProfile/4029123?fullName=Rainer%20%20Stropek">profile</a>). I currently hold two MVP titles, one for <em>Microsoft Azure </em>and the other for <em>Developer Technologies</em>. In 2015, I have also become a Microsoft <em>Regional Director</em>. This title is kind of misleading, it does not mean that I am a Microsoft employee. As RDs, we act as non-paid advisors with Microsoft. We contribute customer insights and provide real-world voices to Microsoft’s product teams.</p><p>The basis of these awards is my work as a speaker and technical writer. In a typical year, I visit well over 30 conferences and meetups and give talks about .NET and Azure. The vast majority of these events are non-profit. I am happily spending that time because I love working with communities. In every event that I visit as a speaker, I learn so much by listening to commercial and Open Source developers, discussing their challenges, and hearing about their everyday struggles and successes.</p><p>Besides my work as a speaker and trainer, I like technical writing. I have a monthly column about Software-as-a-Service in a German magazine. I regularly publish articles online and in print. Many of them are based on my sessions which I also record and put nearly all of them on YouTube so that everybody who is interested can watch them for free.</p><p>The community contribution I am most proud of is the founding of the local <em>CoderDojo </em>in my home town Linz. CoderDojos are a world-wide network of volunteer-led programming clubs for kids between 7 and 17. Creating this community from scratch and participating as a mentor has been so much fun. It changed my perspective on how to teach coding fundamentally. We started <a href="https://linz.coderdojo.net/">CoderDojo Linz</a> five years ago and meanwhile we have well over 1,500 visits of kids per year, we do events practically every week, we help schools establishing coding classes, and we educate teachers in how to teach coding. C# and .NET play are a vital part of the coding exercises and projects that we do with kids and teenagers in the CoderDojo.</p><p>Three years ago, my passion for coding with young people led to a part-time job as a computer science teacher at a local college. Teaching .NET and C# is my main focus here. I make all my learning material, exercises, and recordings of lessons available under Open Source and Creative Commons licenses.</p><h3>What Experience Do I Have That Lends Itself to Be on the Board?</h3><p>In my professional life, I have been self-employed since the first day after finishing school. I have founded and led multiple IT companies. Currently, I am co-founder and CEO of a small software company in Austria focusing on the development of cloud-based Software-as-a-Service solutions. The majority of the code we write and consulting we do is based on .NET and C#. As an entrepreneur, I have learned how to run organizations and build teams.</p><p>For running the previously mentioned CoderDojo, we founded a non-profit organization, the <em>Coding Club Linz</em>. I have been acting as its chairman since it’s founding five years ago. The CoderDojo is our club’s most important activity. Besides that, we organize conferences like the Austrian <a href="https://globalazurebootcamp.at/"><em>Global Azure Bootcamp</em></a> and meetups. Whatever we do, we always make sure that our events are accessible and interesting not just for experienced, commercial software developers, but also for students and hobbyists.</p><p>I have learned from building and running a non-profit coding club and I hope that this experience will be helpful in a potential role in the .NET Foundation.</p><h3>Please Participate in the Election</h3><p>If you are already a member of the .NET Foundation, please participate in the <a href="https://dotnetfoundation.org/about/election">upcoming election</a>. If you are not a member yet but .NET is important to you and you contribute to the .NET ecosystem, please consider <a href="https://dotnetfoundation.org/member/become-a-member">becoming a .NET Foundation member</a> so that you will have a vote in the election.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba50bf5dbdaf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Case Study About Identity Management]]></title>
            <link>https://medium.com/@rainer_8955/a-case-study-about-identity-management-1901cc7ee70?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/1901cc7ee70</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[identity-management]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[case-study]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Tue, 23 Jun 2020 06:05:20 GMT</pubDate>
            <atom:updated>2020-06-23T06:05:20.477Z</atom:updated>
            <content:encoded><![CDATA[<p>In software architecture trainings, I like to use case studies. Attendees get a fictitious business case and have to come up with a proposal. Here is a case study that I use in trainings about cloud-based, SaaS-related software architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*klHMQ7980LL6fC3xx3wRBA.jpeg" /></figure><h3>Current Situation</h3><p>You recently started a new job as a <em>software architect</em> at <em>Rock Solid Engineering Ltd </em>(short: <em>RSE</em>). The company produces heavy machinery for the mining industry.</p><p>RSE earns money by selling its machines and associated maintenance services. Large customers buy RSE machines, many of the smaller ones rent them from rental partners. Software has been part of RSE’s products for more than a decade. Yet, it is not in the center of attention and given away nearly for free because RSE’s hardware is the heart of the company.</p><p>One of the first meetings that you attended at RSE was about identity management (IdM). You learned that currently, RSE’s software has a user and permission management module built in. Optionally, it can run in an <em>Active Directory</em>-integrated mode where users and groups come from a customer’s <em>Microsoft Active Directory</em> system. RSE itself makes heavy use of <em>Active Directory </em>internally.</p><h3>Upcoming Changes</h3><p>The management team of RSE has decided that the role of software in RSE’s product portfolio should change. In the future, digital services will accompany RSE’s machinery products and customers/partner will have to pay significant monthly fees for them. Hardware-integrated sensors will gather data which will be sent to RSE through a world-wide, cloud-based IoT solution. Sensor data will be stored in cloud-based databases operated and owned by RSE. Here are the most important data access use cases:</p><ul><li><em>RSE </em>will use the data to enhance its products.</li><li><em>Customers </em>will get access to dashboards visualizing operational data about their machines. They will also have web APIs with which they can export the data.</li><li><em>Partners </em>who offer RSE’s machines for rent to end customers will be able to access data through web APIs for billing purposes.</li></ul><p>RSE has designated a team of approximately 100 developers who should start in three months with implementing the first digital products. The first suite of digital services available to end customers should be presented at the world’s largest fair for the mining industry in 15 months.</p><p>The development team will be split up into multiple, autonomous teams (size: between 4 and 8 people). Each team will be responsible for implementing a dedicated microservice.</p><h3>Challenge: Identity and Access Management</h3><p>Obviously, RSE’s current IdM strategy is not appropriate for the coming IoT and SaaS platform. In your role as <em>software architect</em>, you got asked to come up with design ideas for the company’s future IdM platform. You have to consider the following types of users:</p><ul><li>RSE employees (e.g. maintenance team, support team, sales team)</li><li>End customers</li><li>Partners providing rental services for RSE’s machines</li></ul><p>The IdM solution has to cover the following functionality:</p><ul><li>Creation, management and deletion of identities</li><li>Sign on, log off (including single sign-on and single log off)</li><li>Provide information about users (attributes like e.g. contact data, roles, assignment to customer/partner, etc.)</li><li>Identity federation (support for signing in with <em>Google Identity Platform</em>and/or <em>Azure Active Directory</em>)</li></ul><h3>Your Tasks</h3><p>For an upcoming architecture meeting you should create a first draft for your IdM concept. Answer questions like:</p><ul><li>Which protocols and standards will you use?</li><li>Will you use existing IdM products, components, or services?</li><li>Which cloud computing components will you use (you can assume that RSE has decided to use <em>Microsoft Azure</em> or you can decide to go for a different cloud platform)?</li><li>How does your IdM concept relate to the chosen microservice architecture?</li></ul><p>Describe and justify your decisions.</p><h3>Case Study Work</h3><ul><li>Split up into groups of 2–4 people.</li><li>Discuss the questions mentioned above and agree on a proposal.</li><li>Sketch the core ideas of your proposal in a few slides (between 2 and 5 slides). Prefer diagrams over written text! One diagram is enough if it is meaningful and expressive.</li><li>Select one or two team members who are going to present your proposal in a lightning talk (&lt;= 7 minutes).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1901cc7ee70" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Case Study About Microservices]]></title>
            <link>https://medium.com/@rainer_8955/a-case-study-about-microservices-34f1d17287e3?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/34f1d17287e3</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[training]]></category>
            <category><![CDATA[case-study]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Fri, 19 Jun 2020 06:47:07 GMT</pubDate>
            <atom:updated>2020-06-19T06:47:07.474Z</atom:updated>
            <content:encoded><![CDATA[<p>In software architecture trainings, I like to use case studies. Attendees get a fictitious business case and have to come up with a proposal. Here is a case study that I use in trainings about Microservices and SaaS-related software architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*3XDrs3clyefncdBPb1h5ig.jpeg" /></figure><h3>Current Situation</h3><p>You are applying for a job as the <em>Chief Technical Officer</em> (CTO) in a successful software company (<em>SportSoft Ltd.</em>). The company has an existing software (<em>SoccerAccountant</em>) for the administration of large soccer clubs. The software is successful on the market.</p><p>Technically, the software has aged. The technologies used are very old and no longer maintained. <em>SoccerAccountant</em> currently consists of a bloated full client written in <em>Delphi</em>. Users are regularly complaining that it uses too much memory, responds too slowly, and regularly crashes. It accesses its <em>Informix</em> SQL database server directly without any service layer in the middle. The only exception is the online fan shop. It has been implemented in PHP and is known for being unstable and slow.</p><p>Your company currently sells the software for a rather high price. Customers have to <em>pay for licenses upfront</em> and additionally pay <em>yearly maintenance fees</em> of 20% of the original license price.</p><h3>The Software</h3><p>SoccerAccountant consists of the following functional modules:</p><ul><li>Accounting (<em>Buchhaltung</em>)</li><li>Asset Accounting (<em>Anlagenbuchhaltung</em>)</li><li>Payroll Accounting (<em>Loh- und Gehaltsverrechnung</em>)</li><li>Online Fan Shop</li><li>Human Resource Management (<em>Personalentwicklung</em>)</li></ul><p>An external company has done a due diligence for SportSoft’s software. They found out that the complexity and size of the code base of all modules are very similar. The only exception is the online fan shop module, which is simpler. It has approximately half the complexity and size of the other software modules.</p><p>At customers, the different modules are typically used by different departments. All modules share some common master data (<em>Stammdaten</em>) like user profiles, employees, products (for fan shop), players and teams, etc.</p><h3>Goal</h3><p>SportSoft has decided to redevelop the SoccerAccountant software. Functional enhancements are currently not planned. The goal of the project is to implement the existing functionality with modern technologies that enable the company to enhance the software in the upcoming years.</p><p>Additionally, SoccerAccountant should become a multi-tenant <em>Software-as-a-Service</em> (SaaS) offering. That means that customers will no longer have to pay a high license fee upfront but pay a monthly subscription fee. SoccerAccountant will run the software in the Cloud and customers will access it using a web browser.</p><p>SportSoft has put together a team of 40 highly skilled developers. Half of the team are long-time employees who know the functionality of SoccerAccountant well. They have participated in technical trainings to update their software development skills. The other part of the team consists of newly hired developers who also have good development skills. In addition to the developers, SportSoft has nominated five business domain experts (one for each module). They will cooperate with the development team and work out any questions regarding functional and non-functional requirements.</p><h3>Your Tasks</h3><h4>Software Architecture</h4><p>For your job application, you must come up with a technical software architecture. Answer questions like:</p><ul><li>Which development technologies will you use?</li><li>Will you split the software into modules? If you do, which modules will you build and how will they communicate?</li><li>Will you use Container technology?</li><li>Which cloud computing components will you use (you can assume that SportSoft has decided to use Microsoft Azure or you can decide to go for a different cloud platform)?</li></ul><p>Describe and justify your decisions.</p><h4>Team Organization</h4><p>For your job application, you must come up with a suggestion for how to organize the development team. Answer questions like:</p><ul><li>Will you split them up in teams?</li><li>How will they work together (e.g. exchange source code, common libraries, data exchange via services, etc.)?</li><li>Which tools will they use (e.g. requirements management, development tools, bug tracking, communication, document management etc.)?</li><li>How will the organizational and operational structure look like?</li></ul><p>Describe and justify your decisions.</p><h4>Case Study Work</h4><ul><li>Split up into groups of 2–4 people.</li><li>Discuss the questions mentioned above and agree on a proposal.</li><li>Sketch the core ideas of your proposal in a few slides (between 2 and 5 slides). Prefer diagrams over written text! Two diagrams (one for each task) are enough if they are meaningful and expressive.</li><li>Select one or two team members who are going to present your proposal in a lightning talk (&lt;= 7 minutes).</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=34f1d17287e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Checklist Against Premature Coding]]></title>
            <link>https://medium.com/@rainer_8955/checklist-against-premature-coding-bbe88bd27b8d?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/bbe88bd27b8d</guid>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[requirements]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Mon, 15 Jun 2020 08:30:21 GMT</pubDate>
            <atom:updated>2020-06-15T08:30:21.115Z</atom:updated>
            <content:encoded><![CDATA[<p>Many companies I work with are in a transition phase. They plan to sell digital services as cloud-based Software-as-a-Service (SaaS) offerings. One part of my job is helping them to design their overall software architecture. Unfortunately, I regularly experience that those companies have not done their homework properly. They are starting detailed design and coding prematurely.</p><p>This document contains business-related questions that I regularly use to prepare software architecture workshops for SaaS projects. Discussing these topics is crucial for the success of SaaS projects as the technical implementation has to reflect the business goals. Starting a project with a too technical focus raises the danger of a project failure because of over-engineering or over-simplification.</p><p>I maintain these questions in a <a href="https://github.com/rstropek/Samples/blob/master/SaaSArchitecture/SaaS-Project-Business-Questions.md">document on GitHub</a>. If you read this post in the future, you can check it for possible updates.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVW4lmAwEOf-zYjXt22XyA.jpeg" /></figure><h3>Vision and Scope</h3><h4>Vision</h4><p><em>Add a summary of the vision for the new SaaS solution (i.e. what is the solution all about and what could it become).</em></p><p><strong>Don’t</strong> go in too much detail. If available, add a reference to a more detailed <a href="https://en.wikipedia.org/wiki/Vision_document">vision and scope document</a>.</p><h4>Project Scope</h4><p><em>Describe the project scope in relation to the vision (i.e. what portion of the long-term vision should be addressed in the current project).</em></p><p><strong>Consider</strong> describing the scope of the current project as well as a rough sketch of the scopes of downstream projects.</p><p><strong>Consider</strong> explicitly mentioning topics that are out of scope of the current project. This can reduce the risk of <a href="https://en.wikipedia.org/wiki/Scope_creep">scope creep</a></p><h3>Innovation</h3><h4>External Perspective</h4><p><em>Describe the key points of innovation of the new SaaS solution from a customer’s perspective.</em></p><p><strong>Don’t </strong>include a description of all functional and non-functional requirements.</p><p><strong>Do </strong>focus on those points that differentiate the new SaaS solution from existing internal or external products.</p><p><strong>Consider </strong>limiting yourself to the five most important innovations.</p><p><strong>Consider </strong>using the <a href="https://en.wikipedia.org/wiki/Blue_Ocean_Strategy#Concept">Blue Ocean Strategy</a> while working on these question.</p><h4>Internal Perspective</h4><p><em>Describe how the new SaaS solution will fundamentally change internal aspects of your company.</em></p><p><strong>Don’t</strong> include existing processes and structures that remain more-or-less unchanged.</p><p><strong>Do </strong>describe fundamental changes to</p><ul><li>business processes,</li><li>organizational structures and</li><li>financing.</li></ul><p><strong>Consider </strong>describing fundamental changes to your company’s <a href="https://en.wikipedia.org/wiki/Value_chain">value chain</a>.</p><p><strong>Consider </strong>limiting yourself to the five most important changes.</p><p><strong>Consider </strong>using the <a href="https://en.wikipedia.org/wiki/Business_Model_Canvas">Business Model Canvas</a> while working on these question.</p><h3>Target Environment</h3><h4>Public Cloud vs. Private Cloud</h4><p><em>Specify the extent to which the new SaaS solution focuses on Cloud Computing.</em></p><p><strong>Do </strong>mention a potential focus on a specific public cloud platform (e.g. <em>Microsoft Azure</em>, <em>Amazon AWS</em>, <em>Google Cloud Platform</em>). If there is a specific focus, consider describing the reasoning behind it.</p><p><strong>Do </strong>explicitly state whether the entire software solution must be installable on-premise in customers’ or partners’ data centers. If this is necessary, consider describing the maturity of customers’ private clouds that can be assumed.</p><p><strong>Do </strong>mention potential bring-your-own-subscription scenarios (e.g. install SaaS solution in a public cloud environment owned and controlled by a partner or customer).</p><p><strong>Don’t </strong>go into technical details regarding used cloud services, cloud architecture patterns, etc. This will be part of downstream architecture workshops.</p><h4>Limitations</h4><p><em>Mention limitations regarding public cloud services used in the new SaaS solution. Consider describing the reasoning behind it (e.g. specific legal requirements, avoid lock-in effects, etc.).</em></p><p><strong>Consider </strong>potential regional limits (e.g. data centers must be inside the EU).</p><p><strong>Consider </strong>certification requirements (e.g. ISO 27018; see e.g. <a href="https://www.microsoft.com/en-us/trustcenter/compliance/complianceofferings">compliance offerings in Azure Trust Center</a> for examples).</p><p><strong>Consider </strong>specific requirements for used cloud services considering availability and performance SLAs (<em>Service Level Agreements</em>; see e.g. <a href="https://azure.microsoft.com/en-us/support/legal/sla/">Azure SLAs</a> for examples).</p><p><strong>Consider </strong>required support for specific standards (e.g. communication standards like <em>AMQP</em>, authentication standards like <em>OpenID Connect</em>, etc.).</p><p><strong>Consider </strong>adding a statement in which cases lock-in effects to vendor-specific cloud services are acceptable (e.g. value short time-to-market higher than risks because of lock-in effects, avoid lock-in effects by using open standards and platforms, etc.).</p><h3>Customers</h3><h4>Customer Characteristics</h4><p><em>Describe the characteristics of typical customers who are ideal, potential users for the new SaaS solution.</em></p><p><strong>Do </strong>describe whether it will be a B2B or B2C solution.</p><p><strong>Do </strong>include quantitative data (e.g. typical size of a customer in number of users, number of transactions, duration of use of the solution in hours/month, etc.).</p><p><strong>Do </strong>include information about customers’ locations (e.g. countries, languages, etc.).</p><p><strong>Consider </strong>specific technical limitations of you customers concerning internet access (e.g. particularly slow or unstable internet access).</p><p><strong>Consider </strong>mentioning expected changes in customer characteristics of the SaaS solution’s target group (e.g. <em>first we focus on…, later we extend our target group to…</em>).</p><p><strong>Consider </strong>mentioning real-world examples of customers (e.g. existing customers, well-known companies, examples from focus groups, etc.).</p><h4>Number of Customers</h4><p><em>Describe the anticipated number of customers short-term, mid-term, and long-term.</em></p><p><strong>Do </strong>specify the planned number of customers and the planned number of users.</p><p><strong>Consider </strong>describing multiple scenarios (e.g. optimistic, pessimistic).</p><p><strong>Do </strong>estimate the numbers per pricing model (see also separate question below), if you plan to offer different pricing models. This is especially important if there will be a high-volume free or <a href="https://en.wikipedia.org/wiki/Freemium">freemium</a> plan.</p><p><strong>Consider </strong>adding expected churn and conversion rates.</p><h4>Usage Characteristics</h4><p><em>Describe the anticipated usage scenarios and patterns for typical customers.</em></p><p><strong>Do </strong>mention predictable usage spikes (e.g. end of month, certain events, etc.).</p><p><strong>Do </strong>mention time ranges with predictable below-average usage (e.g. night, weekend, etc.).</p><p><strong>Do </strong>describe the most important business transaction types and their expected volume per timeframe. Consider limiting yourself to the five most important ones.</p><p><strong>Consider </strong>mentioning at least boundaries if exact numbers have not been worked out yet (e.g. at least x transactions per month per user…, not more than y transactions per second…, etc.).</p><p><strong>Consider </strong>describing usage scenarios from a customer’s perspective (e.g. uses smartphone for certain scenarios while traveling). Consider limiting yourself to the five most important ones.</p><p><strong>Don’t </strong>go into too much details. Rough estimations that demonstrate the fundamental concepts are enough.</p><h4>Data Characteristics</h4><p><em>Describe the anticipated data volume and structure of a typical customer.</em></p><p><strong>Do </strong>focus on the outstanding aspects (e.g. entities with the by far largest number of instances).</p><p><strong>Don’t </strong>include detailed technical data models. They will be worked out during the implementation project. Focus on the business view instead.</p><p><strong>Consider </strong>describing especially complex data structures from a business point of view (e.g. graph data structures, data structures with complex time reference, etc.).</p><p><strong>Don’t</strong> go into too much details. Rough estimations that demonstrate the fundamental concepts are enough.</p><h3>Product</h3><h4>Client Technology</h4><p><em>Describe specific requirements of customers regarding client technology (e.g. important client devices, browser support, etc.).</em></p><p><strong>Don’t </strong>include detailed UI specification here.</p><p><strong>Don’t </strong>go into too much technical detail. Focus on the user’s perspective instead.</p><p><strong>Do </strong>focus on differentiators (e.g. best user experience on iPhone, available on any device, etc.) instead of describing usually assumed client and UI features.</p><p><strong>Do </strong>mention specific business requirements for certain client technologies (e.g. must support a specific browser version, must run on a specific Android version, must support certain screen sizes, etc.). Consider describing the reasoning behind it.</p><p><strong>Avoid </strong>being vague and subjective (e.g. easy to use, self-describing).</p><p><strong>Consider </strong>describing the need for supporting temporary offline work. Describe the business scenarios from a customer’s point of view that should be enabled by offline capabilities.</p><h4>API</h4><p><em>Describe the role of APIs for the new SaaS solution.</em></p><p><strong>Don’t </strong>go into technical details. Focus on the business scenarios and the reasoning behind the APIs instead.</p><p><strong>Do </strong>describe the target group for APIs (e.g. partners building plugins, integration scenarios built by power users). Consider describing their typical background (business and technology).</p><p><strong>Do </strong>describe the most important business scenarios enabled by adding a public API to the SaaS solution. Consider limiting yourself to the five most important ones.</p><h4>Extensibility</h4><p><em>Describe necessary feature for customer-specific extensions and customizations.</em></p><p><strong>Don’t </strong>go into technical detail.</p><p><strong>Do </strong>describe the most important business scenarios enabled by the required extensibility mechanisms. Consider limiting yourself to the five most important ones.</p><h3>Business Model</h3><h4>Calculation</h4><p><em>Describe the revenue and cost calculation for the new SaaS solution.</em></p><p><strong>Do </strong>describe the planned pricing model (e.g. price plans, volume scaling, freemium offerings, free pricing tier, etc.).</p><p><strong>Do </strong>describe the budget and its structure for building and running the SaaS solution (<a href="https://en.wikipedia.org/wiki/Total_cost_of_ownership">TCO</a>, not just server costs).</p><p><strong>Consider </strong>mentioning at least boundaries if exact numbers have not been worked out yet (e.g. must not be more expensive than…, we will charge at least…, etc.).</p><p><strong>Don’t </strong>go into too much details. Rough estimations that demonstrate the fundamental concepts are enough.</p><p><strong>Consider </strong>adding a rough <a href="https://en.wikipedia.org/wiki/Customer_lifetime_value">customer lifetime value</a> calculation for a typical target customer.</p><h4>Supporting Service</h4><p><em>Describe the planned supporting services for the new SaaS solution (e.g. self-service administration portal, web-based support portal, automated rating and billing, etc.).</em></p><p><strong>Do </strong>add quantitative data if available (e.g. number of anticipated support requests per user per year).</p><p><strong>Do </strong>add any specific requirements regarding standards or certifications (e.g. documentation for ISO certification, applicable legal requirements for invoices, etc.).</p><h3>Time Frame</h3><p><em>Describe important dates for milestones relevant for the SaaS project (e.g. important trade shows, presentation for venture capitalists, etc.).</em></p><p><strong>Do </strong>describe the features that are absolutely necessary for each milestone.</p><p><strong>Consider </strong>the concept of the <a href="https://en.wikipedia.org/wiki/Minimum_viable_product">Minimum Viable Product</a>.</p><h3>Technology</h3><h4>Technological Restrictions</h4><p><em>Describe technological restrictions that the current project has to comply with (e.g. use of certain programming languages or frameworks).</em></p><p><strong>Don’t </strong>go in too much detail. If available, add references to existing documents and guidelines (e.g. <a href="https://en.wikipedia.org/wiki/Software_design">software design</a> guidelines, description of methodologies like <a href="https://12factor.net/"><em>12factor</em></a>).</p><p><strong>Consider </strong>describing the reasoning behind the restriction.</p><p><strong>Do </strong>reference standards (e.g. standardized communication protocols, standard regarding data security, industry standards) that the project has to implement. Consider describing the reasoning why the standards are relevant.</p><p><strong>Avoid </strong>subjective opinions (e.g. “we don’t believe that x has a future”), prefer references to objective facts (e.g. decreasing adoption rate according to GitHub statistics or large-scale polls).</p><h4>Known Technical Risks</h4><p><em>Describe known technical risks and unsolved challenges (e.g. from previous projects, from research projects) that can already be anticipated.</em></p><p><strong>Don’t </strong>go in too much detail. If available, add a reference to more detailed documents (e.g. research project results).</p><p><strong>Consider </strong>limiting yourself to the five most important risks and challenges that could lead to a failed project as a whole.</p><h4>Existing Artifacts</h4><p><em>Describe existing components that have to be used in the SaaS development process (e.g. existing code base, third-party components that must be used, interfaces to existing systems, etc.).</em></p><p><strong>Don’t </strong>go into the technical details.</p><p><strong>Do </strong>focus on existing components that have to be reused because of certain business requirements (e.g. algorithm which is part of a standard, existing contracts, presence on a certain digital market place, etc.). Consider describing the reasoning behind it.</p><p><strong>Consider </strong>adding a <a href="https://en.wikipedia.org/wiki/System_context_diagram">system context diagram</a> to describe the necessary interactions with existing, external systems.</p><p><strong>Consider </strong>adding references to documentation and/or persons that could be useful during a more detailed, technical analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bbe88bd27b8d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Great Sources for Innovation Ideas in Agile Projects]]></title>
            <link>https://blog.devgenius.io/10-great-sources-for-innovation-ideas-in-agile-projects-4ac06fe87f4d?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ac06fe87f4d</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[saas]]></category>
            <category><![CDATA[innovation]]></category>
            <category><![CDATA[ideas]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Tue, 09 Jun 2020 10:45:46 GMT</pubDate>
            <atom:updated>2020-06-10T06:22:11.575Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3K6nW-ckpj1HLW9e-6umw.jpeg" /><figcaption>Image Source: <a href="https://pixabay.com/de/photos/ortsschild-strasse-n%C3%BCtzlich-nutzen-822236/">https://pixabay.com/de/photos/ortsschild-strasse-n%C3%BCtzlich-nutzen-822236/</a></figcaption></figure><p>We deliver our software <a href="https://timecockpit.com/">time cockpit</a> as a service (<a href="https://en.wikipedia.org/wiki/Software_as_a_service"><em>SaaS</em></a><em> </em>model). Instead of paying big license fees upfront, our customers pay for what they use on a monthly basis. From the very beginning, we decided that we don’t want artificial constraints like minimum quantities or terms. Our customers can leave whenever it turns out that they don’t need time cockpit anymore.</p><p>By sending monthly invoices, we regularly remind our customers of the money they pay for our service. Thus, it is crucial that we<em> continuously show progress and innovation</em> so that customers know what they are paying for. Otherwise it is a question of time until they cancel their time cockpit subscription.</p><p>In this article I want to talk about 10 great sources we use to get ideas for new features and technologies.</p><h4>Listen to Your Inner voice, Heart, and Intuition for Disruptive Ideas</h4><p>Without any question, external influencers like customers and business partners are very important authorities when it comes to sustaining innovation. However, if you are looking for ideas how to <em>radically </em>improve through a completely different approach or a groundbreaking new technology, you likely have to develop them yourself.</p><p>Customers do not always know what they need. If you are looking for a disruptive technology or innovation, you have to see that something is broken even if everybody else thinks the status quo is fine. External people might even tell you that your idea is stupid or not feasible (take a look at <a href="https://web.archive.org/web/20151121124359/http://zimmer.csufresno.edu:80/~fringwal/stoopid.lis">They really ought to have known better</a> for historical examples). Steve Jobs has put it like that:</p><blockquote><em>Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma — which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.</em> (<a href="http://www.quotationspage.com/quote/38353.html">Source</a>)</blockquote><p>Your customers will describe symptoms or concrete pains but often they cannot express the root cause of their problem. If your customers ask for a specific solution, it is probably not as radically different as you first might think.</p><blockquote><em>After your target customers are identified, you spend time researching them — looking for their unarticulated (or latent) needs: that is, what customers can’t quite tell you themselves but which are the deep desires and underlying needs that drive their behaviors. Identifying an unarticulated need that your competition has not yet noticed, and then building an excellent solution for it, is a great way to achieve differentiation in a crowded market.</em> (Source: De Bonte, Fletcher: Scenario-Focused Engineering, Microsoft Press, 2014)</blockquote><p>If you are looking for a disruptive technology, your inner voice, heart, and intuition are important sources for ideas.</p><p>If you want to learn more about sustaining vs. disruptive, I encourage you to read <a href="http://www.amazon.de/gp/product/B00E257S86/ref=as_li_tl?ie=UTF8&amp;camp=1638&amp;creative=19454&amp;creativeASIN=B00E257S86&amp;linkCode=as2&amp;tag=timecockpit-21"><em>The Innovator’s Dilemma</em></a> by <em>Clayton M. Christensen</em>.</p><p>The following sources for ideas are more for the sustainable side of innovation.</p><h4>Eat Your Own Dogfood</h4><p>It is good practice to first try new releases internally. Make the development team use is, let other departments in your company use it. You can even selectively choose a few external persons (e.g. friendly customers or close partners who have signed an NDA) who you give access to your latest bits. Use the learnings and feedback from internal users to stabilize new features.</p><p>Next, you can share a new product release through an early adopter program (e.g. beta versions, previews) with a broader audience. It might make sense to offer a direct communication channel from early adopters to the development team so that feedback gets in quickly and directly.</p><h4>Learn from Support and Trouble Tickets</h4><p>Support tickets are a great source of ideas for how you could enhance your product. If customers struggle with a feature over and over again, you should likely redesign or simplify it.</p><p>We recommend to regularly review your support ticket database. Categorize the issues, find the ones that come in most often, and analyze them. It is important to not only look at the details of the support cases. Instead, try to see the big picture and root causes of the customers’ problems.</p><p>Internally, we use <a href="https://www.zendesk.com/">Zendesk</a> for support and trouble ticket management. It can easily be connected with time cockpit via both systems’ REST APIs. With this, we get an integrated view of support topics and working hours spent for support.</p><h4>Ask Churning Customers and Analyze Lost Sales Pitches</h4><p>It isn’t funny to lose a customer or a sales pitch. However, every customer who turns away is a valuable source for innovation ideas. It is important to ask why the customer left. Doesn’t she need the service at all anymore or will she use a competitor’s service instead? What was missing?</p><p>Sometimes, asking lost customers for their cancellation reason might bring some of them back. Maybe it was just a misunderstanding and you have to enhance your documentation. Even if they really leave, you will gain insight into what’s important for your users.</p><h4>Listen to Customer Feedback and Complaints</h4><p>Value customer feedback. Use tools like <a href="https://en.wikipedia.org/wiki/Net_Promoter">Net Promoter Score</a> (NPS). Never forget to say “thank you” if a customer takes the time to tell you her thoughts about your service. That’s easier said than done, especially if it is negative feedback.</p><p>The easier you make it to give feedback, the more likely you will get one. Here is an example from our service time cockpit: For a period of time, we integrated a service called <a href="https://usersnap.com/?forcelang=en">Usersnap</a> so that customers could easily create visual feedback about their ideas how to make time cockpit’s UI even better.</p><h4>Don’t Forget Courtesy Calls</h4><p>In our experience, regularly calling existing customers and asking whether they are happy with the service we provide, pays off. It will make you happy if you hear that everything is fine. If not, you will get ideas for innovations. Sometimes customers will tell you about features they miss that are already in the product. This might be an opportunity for cross-selling (e.g. additional modules, training, consulting).</p><h4>Watch Your Competition</h4><p>This one is obvious, so let’s keep it short: Regularly look at what your competition is doing and think of the consequences on your product planning.</p><h4>Monitor Development of New Technologies</h4><p>New technologies can enable new features and new business models (e.g. lower operational costs leading to lower subscription prices). At time cockpit, we spend a notable amount of time and money to stay up to date in areas of technology that are relevant to us.</p><p>Monitoring technological progress and evaluating consequences on ones products and services does not happen by accident. We think that in every software company some people should consciously dedicate a certain share of their working time to this topic. They should experiment with new technologies and build prototypes.</p><h4>Listen to New Employees</h4><p>Whenever new members join your team, value their feedback instead of making them shut up because of a lack of experience. If you have been working on a project for a long time, you have blinders on. New team members don’t.</p><h4>See Analogies</h4><p>Thomas Edison said about would-be innovators that they have to have <em>“a logical mind that sees analogies”</em> (see <a href="http://www.wsj.com/articles/four-ways-to-innovate-through-analogies-1415376079">this Wall Street Journal article</a> for more details). Sometimes you see concepts, workflows or solution approaches in totally different business areas or even in private hobbies that can help to enhance your products and services.</p><h4>Get Information from Instrumentation and Telemetry</h4><p>When you design your product, you have certain use cases in mind. However, customer might interact with it in a way you never anticipated. Which features are unnecessary? What does really matter to your customers? I recommend to use an existing tool or service to gather and analyze telemetry data. It does not only give you insights into what your users really do with your software, it also offers performance data that helps you to detect bugs and areas with poor response times.</p><p>Here are some tools we are using or have been using in the past:</p><ul><li><a href="http://azure.microsoft.com/en-us/services/application-insights/">Azure Application Insights</a></li><li><a href="http://www.dynatrace.com/en/index.html">dynatrace</a></li></ul><p>The best in class combine usage data with time tracking to find out whether they are spending their time on features that really matter to their users. They carefully optimize those areas that are used most.</p><h4>Align With Your Company’s Strategy</h4><p>Agile project management approaches like Scrum or Kanban are great frameworks to incorporate sustainable innovation into your development workflow. However, it is important to have a larger vision for long-term product planning. Make sure that all your innovation ideas are aligned with your overall vision. Question all your small steps and ask how they support your strategic goals.</p><p>If you want to read more about long-term strategy and agile methods, you might be interested in my text <a href="https://medium.com/@rainer_8955/dont-let-agile-ruin-your-software-s-architectural-design-a194db8be4be?sk=807fb718500b5a6a48d980eeec0b5444">Don’t Let Agile Ruin Your Software’s Architectural Design</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ac06fe87f4d" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/10-great-sources-for-innovation-ideas-in-agile-projects-4ac06fe87f4d">10 Great Sources for Innovation Ideas in Agile Projects</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Don’t Let Agile Ruin Your Software’s Architectural Design]]></title>
            <link>https://blog.devgenius.io/dont-let-agile-ruin-your-software-s-architectural-design-a194db8be4be?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/a194db8be4be</guid>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[agile-methodology]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[kanban]]></category>
            <category><![CDATA[software-design]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Sun, 07 Jun 2020 14:04:04 GMT</pubDate>
            <atom:updated>2020-06-07T14:49:58.253Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*t8TY6HRGmJGIBB4j7xx5bA.jpeg" /><figcaption>Image source: <a href="https://flic.kr/p/hqFAs2">https://flic.kr/p/hqFAs2</a>, <a href="https://creativecommons.org/licenses/by/2.0/">Creative Commons</a> License</figcaption></figure><h3>Parti, the Big Idea</h3><p>Architects call the central idea or concept of a building <em>parti pris</em> or just <em>parti</em>. This term comes from the French <em>prendre parti</em> meaning “to make a decision”. You can think of <em>parti</em> as the big idea behind an architectural design which is often “expressed by a diagram depicting the general floor plan organization […] and […] its experiential and aesthetic sensibility” (Quote from <a href="http://www.amazon.de/gp/product/0262062666/ref=as_li_tl?ie=UTF8&amp;camp=1638&amp;creative=19454&amp;creativeASIN=0262062666&amp;linkCode=as2&amp;tag=timecockpit-21&amp;linkId=25YH4XHWVZKSEOC2"><em>Frederick M.: 101 Things I Learned in Architecture School, MIT Press, 2007</em></a> — a recommendable book).</p><h4>Parti Protects Your Software Architecture in Agile Projects</h4><p>Particularly non-trivial agile projects require the existence of a parti, a big idea. I am not arguing for a waterfall-model with big design upfront. I am demanding an<em> orientation point </em>which helps to keep the architectural design of your software consistent while enhancing it in iterations using agile principles.</p><p>Examples for typical problems of agile teams without a parti are:</p><ul><li>Software architecture is not documented and not manageable</li><li>Software architecture is unsuitable for iterative enhancement and extensions</li><li>Time and money are wasted because detailed design phase and implementation is started too early when the parti isn’t clear yet</li><li>Estimations (time and budget) are wrong because the project’s scope is not fully understood</li><li>Technical features of programming languages, frameworks, cloud environment, etc. determine the architectural design</li></ul><h4>Our Own Parti</h4><p>For our own software products <a href="http://www.timecockpit.com/"><em>time cockpit</em></a> and its underlying <em>Cockpit Framework</em> (CoFX), we spent many months developing the initial software architecture parti when we started our company. We also documented and presented it in presentations, conference papers, magazine articles, videos, etc. Here are some examples of topics covered by our own parti:</p><ul><li>Key requirements of our products’ users and how we generally want to solve them</li><li>Building blocks for SaaS (e.g. multi-tenancy, availability, scalability, security)</li><li>Customization and extensibility concepts</li><li>Platform strategy (e.g. cloud-platform, runtime, programming languages, libraries)</li><li>Business model and how it translates into our software architecture</li></ul><h4>Do You Have a Parti for Your Software Architecture?</h4><p>Over the years, our parti has been acting as a guidepost for many day-to-day design decisions and it still is. In our consulting work, we regularly visit software development companies for workshops, trainings, and code reviews. Most of them don’t have a parti at all. Some have, but it only exists in the mind of a single person. Only very few can answer questions like this:</p><ul><li>What are the foundational principles of the architectural design of your products?</li><li>On a high-level, how do you think your software architecture will look like in three to five years?</li><li>What are the core pillars in your architectural design that will most likely not change despite the rapidly changing environment in software development?</li></ul><p>We are strong believers that a clear and documented parti is very important for the long-term success of software products. During the lifecycle of a software product, developers and architects have to make a huge number of decisions. The parti should be the golden thread running through all of them.</p><h4>Pitfalls in Parti Development</h4><p>You don’t create a parti for a non-trivial software products in just a few hours. On the contrary, the creation process is exhausting and time-consuming because requirements might be unknown, technical complications appear, you forget things, etc. Plan enough time for developing the parti. Starting detailed design or implementation without it is a waste of time and money.</p><p>The number of patterns, tools, libraries, best practices, great ideas, etc. is sheer endless. Beware of cramming all of them into your parti. Aim for a clean, consistent, and simple (not naïve) parti that fits your project’s needs. Save all the other great ideas for other projects in the future.</p><p>If you are struggling with the balance between complexity and simplicity, I recommend looking at John Maeda’s <a href="http://lawsofsimplicity.com/"><em>Laws of Simplicity</em></a>. You might find some inspiration there.</p><h4>Maintain Your Parti</h4><p>When you managed to create <em>and document/visualize</em> your initial parti, your work isn’t done. Customers and stakeholders frequently change their mind. Probably you will try to stick to your parti as long as you can. You will add patches and small fixes to your architectural design. It is hard to recognize when a parti is no longer appropriate. When that point has been reached, you have to abandon it, make major changes to it, or even create a new one.</p><p>Poor software architects stick to their parti even though small extensions, patches, and fixes that happen naturally over time in agile projects destroyed the integrity of the whole.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/0*D1iPJg55yiefpA74" /></figure><p><a href="http://www.amazon.de/gp/product/0262062666/ref=as_li_tl?ie=UTF8&amp;camp=1638&amp;creative=19454&amp;creativeASIN=0262062666&amp;linkCode=as2&amp;tag=timecockpit-21&amp;linkId=25YH4XHWVZKSEOC2">Frederick M.: 101 Things I Learned in Architecture School, MIT Press, 2007</a>, Page 26</p><h4>Role of the Software Architect</h4><p>It is the job of the <a href="https://en.wikipedia.org/wiki/Software_architect"><em>software architect</em></a> in an agile project to recognize when the existing parti is no longer valid. Together with her team, she has to make larger changes or create an entirely new parti that incorporates all the knowledge gathered over time. The new parti will act as the guideline for future iterations.</p><h4>Summary</h4><ol><li>Take the time to develop a parti, a big idea, for your software’s architectural design.</li><li>Document and visualize your parti so you can share it with stakeholders, colleagues, employees, etc.</li><li>Align your detailed design decisions with your parti to keep the integrity of your product.</li><li>Be brave and accept when it is time to abandon your parti and create a new one.</li><li>As a software architect, you are responsible for developing and maintaining the parti in your agile team.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a194db8be4be" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/dont-let-agile-ruin-your-software-s-architectural-design-a194db8be4be">Don’t Let Agile Ruin Your Software’s Architectural Design</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why every developer should start a CoderDojo]]></title>
            <link>https://blog.devgenius.io/why-every-developer-should-start-a-coderdojo-c0c5c2726856?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/c0c5c2726856</guid>
            <category><![CDATA[coderdojo]]></category>
            <category><![CDATA[volunteering]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[kids]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Fri, 05 Jun 2020 04:40:21 GMT</pubDate>
            <atom:updated>2020-06-05T18:13:05.011Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc-nd/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FEhHYmRU-MfphRz5UbX8Zg.png" /><figcaption>CoderDojo Linz Logo</figcaption></figure><p>In my everyday job I build cloud solutions based on Microsoft Azure. Privately, I am chairman and mentor at the <a href="https://linz.coderdojo.net/">local CoderDojo</a> in my hometown Linz. <a href="https://coderdojo.com/">CoderDojos</a> are volunteer-driven, free computer clubs for kids between 7 and 17. It is a worldwide movement with over 2200 clubs present in 110 countries around the globe (<a href="https://zen.coderdojo.com/find">find one near you</a>).</p><p>I came in touch with CoderDojo when I was a speaker at a conference in Belgium five years ago. I have been there together with my wife who is a programmer, too. We immediately got fascinated by the idea and when we got home, we founded the first regular CoderDojo in Austria. Five years later we do over 35 events per year and in these events we count well over 1500 visits of kids. During the current Covid-19 times, we switched to virtual CoderDojos. This works surprisingly well.</p><p>In this posting, I would like to tell you why I think that every developer should start or participate in a programming club like CoderDojo.</p><p>I could start by telling you something about skilled worker shortage, about a lack of diversity in our industry, about why free programming courses are important because our society should provide equal opportunities for everybody. I could argue that an understanding of programming languages is increasingly important in the modern world and that it’s both better and easier to learn these skills early. All these things are very true and I strongly believe in them. However, today my focus is on why <strong><em>you</em></strong> as a developer should start engaging in a programming club like CoderDojo. Where is your cheese? Why should you spend additional hours in from of your computer preparing exercises for kids?</p><p>First, let me tell you that it is fun! According to the latest <a href="https://insights.stackoverflow.com/survey/2020#developer-profile-coding-as-a-hobby">Stack Overflow Developer</a> Study, over 78% of all developers see coding also as a hobby. I am sure many of you do, too. Why not executing this hobby together with young coders who are passionate about learning modern technologies? You can make fun projects, share your fascination about the world of coding with enthusiastic kids <strong><em>and</em></strong> help them develop important skills for life. Believe me, doing that is very rewarding.</p><p>Next, you will learn so much when working with kids. No, they will not teach you about the latest C# language feature and only a few of them will get sparkly eyes if you tell them about Azure Security Center improvements. Your learnings will be different. They will be about one of the hardest things there is in technology: Describing complex matters in a way that even a kid can understand and makes it want her to learn more. Teaching algorithms should not be boring, it should be fun. Build a game with Scratch with kids. Teach older kids fundamentals of logic by building exciting things using <a href="https://education.minecraft.net/blog/learn-about-redstone/">Redstone in Minecraft</a>. Show older kids how to create a website about a topic that they care about. Being able to making software development concepts comprehensible for people who are no experts yet, is a skill that you will definitely also need in your jobs and CoderDojo is a great place to learn and practice.</p><p>Helping in a CoderDojo goes way beyond working with kids. You will meet many like-minded people and win new friends. When you ask companies for help in form of hardware donations or financial support, you will see that coming from a programming club for kids opens a lot of doors. Your work as a CoderDojo volunteer will widen your personal network and enable you to grow personally and professionally.</p><p>Did I get you excited? Do you want to know more? I hope so. Your first stop on your journey as a CoderDojo mentor could be <a href="https://coderdojo.com/">the CoderDojo website</a>. Look for existing clubs in your neighborhood. If you find one, get in touch with the organizers and offer them your help. If you have specific questions, reach out to me or <a href="https://coderdojo.com/contact/">the CoderDojo foundation</a>. They are super friendly and helpful. Can’t find a CoderDojo in your area? Awesome, that is a great opportunity for you to start one. CoderDojo has a lot of material to get you started (ours is in German and available <a href="https://linz.coderdojo.net/infos/uebungsbeispiele.html">on our website</a>). You could participate in an online event or travel to an existing CoderDojo to get inspiration for your own club. And then, don’t hesitate, get started! Find a location, ask friends to help out, invite kids in your local community, and off it goes!</p><p>Thank you so much for reading. I hope I could inspire you and I am looking forward to hearing about your start as a CoderDojo champion.</p><p>Bye…</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c0c5c2726856" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/why-every-developer-should-start-a-coderdojo-c0c5c2726856">Why every developer should start a CoderDojo</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure MySQL with AAD and Managed Identity]]></title>
            <link>https://blog.devgenius.io/azure-mysql-with-aad-and-managed-identity-698128dc53fa?source=rss-764a02e838fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/698128dc53fa</guid>
            <category><![CDATA[net-core]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[mysql]]></category>
            <category><![CDATA[azure-managed-identities]]></category>
            <category><![CDATA[azure]]></category>
            <dc:creator><![CDATA[Rainer Stropek]]></dc:creator>
            <pubDate>Thu, 04 Jun 2020 09:39:39 GMT</pubDate>
            <atom:updated>2020-06-06T16:32:15.274Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-nc/4.0/</cc:license>
            <content:encoded><![CDATA[<p>I do not like having to manually manage servers. Therefore, PaaS is what I am focusing on in the public cloud. When it comes to databases, Microsoft Azure has a wide variety of PaaS offerings, including <a href="https://docs.microsoft.com/en-us/azure/mysql/">MySQL</a>. For running your web API or web app on PaaS, Azure gives you <a href="https://docs.microsoft.com/en-us/azure/app-service/">App Service</a>. If you want to connect both services securely without having to manage passwords, <a href="https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview">Managed Identity</a> is your friend. The Azure docs contain an article giving some guidance about using Managed Identity together with MySQL, but it is not very detailed and it does not cover App Service. So, I would like to demonstrate in this article how you can use all these PaaS offerings together.</p><h3>Concepts</h3><p>Readers who are not familiar with the basics of Azure Active Directory (AAD) authentication with MySQL should read <a href="https://docs.microsoft.com/en-us/azure/mysql/concepts-azure-ad-authentication">this docs article</a> to understand the fundamental concepts before diving into the code sample shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*RkX2GSmR1MNtk6uEcelTKA.png" /><figcaption>Image Source: <a href="https://docs.microsoft.com/en-us/azure/mysql/concepts-azure-ad-authentication#architecture">Microsoft</a></figcaption></figure><h3>ARM Template</h3><p>First, we need an ARM Template to deploy some Azure resources. In this example, I decided to setup the following demo environment:</p><ul><li><a href="https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/overview#how-does-the-managed-identities-for-azure-resources-work"><em>User-assigned </em>managed identity</a></li><li>Windows-based App Service Plan with a Web Site (will run a .NET Core sample app)</li><li>Managed MySQL server</li></ul><p>Here is the ARM Template that I created for this example. Nothing really special in it. The interesting part will come later.</p><pre>{<br>  &quot;$schema&quot;: &quot;<a href="https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#">https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#</a>&quot;,<br>  &quot;contentVersion&quot;: &quot;1.0.0.0&quot;,<br>  &quot;parameters&quot;: {<br>    &quot;baseName&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;mysql-msi-poc&quot;<br>    },<br>    &quot;appServiceSku&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;P1&quot;<br>    },<br>    &quot;mySqlVersion&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;5.7&quot;<br>    },<br>    &quot;mySqlAdminName&quot;: {<br>      &quot;type&quot;: &quot;securestring&quot;,<br>      &quot;defaultValue&quot;: &quot;mySqlAdmin&quot;<br>    },<br>    &quot;mySqlAdminPassword&quot;: {<br>      &quot;type&quot;: &quot;securestring&quot;<br>    },<br>    &quot;mySqlStorageAmountMB&quot;: {<br>      &quot;type&quot;: &quot;int&quot;,<br>      &quot;defaultValue&quot;: 5120<br>    },<br>    &quot;mySqlBackupRetentionDays&quot;: {<br>      &quot;type&quot;: &quot;int&quot;,<br>      &quot;defaultValue&quot;: 7<br>    },<br>    &quot;mySqlGeoRedundantBackups&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;Disabled&quot;<br>    },<br>    &quot;mySqlSku&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;GP_Gen5_8&quot;<br>    },<br>    &quot;identityName&quot;: {<br>      &quot;type&quot;: &quot;securestring&quot;,<br>      &quot;defaultValue&quot;: &quot;mySqlIdentity&quot;<br>    },<br>    &quot;mySqlDB&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;mysql&quot;<br>    },<br>    &quot;mySqlMsiUser&quot;: {<br>      &quot;type&quot;: &quot;string&quot;,<br>      &quot;defaultValue&quot;: &quot;msiuser&quot;<br>    }<br>  },<br>  &quot;functions&quot;: [<br>  ],<br>  &quot;variables&quot;: {<br>    &quot;appServiceName&quot;: &quot;[concat(&#39;asp-&#39;, parameters(&#39;baseName&#39;))]&quot;,<br>    &quot;webAppName&quot;: &quot;[concat(&#39;webapp-&#39;, parameters(&#39;baseName&#39;))]&quot;,<br>    &quot;mySqlName&quot;: &quot;[concat(&#39;mysql-&#39;, parameters(&#39;baseName&#39;))]&quot;<br>  },<br>  &quot;resources&quot;: [<br>    {<br>      &quot;type&quot;: &quot;Microsoft.ManagedIdentity/userAssignedIdentities&quot;,<br>      &quot;name&quot;: &quot;[parameters(&#39;identityName&#39;)]&quot;,<br>      &quot;apiVersion&quot;: &quot;2018-11-30&quot;,<br>      &quot;location&quot;: &quot;[resourceGroup().location]&quot;<br>    },<br>    {<br>      &quot;name&quot;: &quot;[variables(&#39;appServiceName&#39;)]&quot;,<br>      &quot;type&quot;: &quot;Microsoft.Web/serverfarms&quot;,<br>      &quot;apiVersion&quot;: &quot;2018-02-01&quot;,<br>      &quot;location&quot;: &quot;[resourceGroup().location]&quot;,<br>      &quot;sku&quot;: {<br>        &quot;name&quot;: &quot;[parameters(&#39;appServiceSku&#39;)]&quot;,<br>        &quot;capacity&quot;: 1<br>      },<br>      &quot;tags&quot;: {<br>        &quot;displayName&quot;: &quot;[variables(&#39;appServiceName&#39;)]&quot;<br>      },<br>      &quot;properties&quot;: {<br>        &quot;name&quot;: &quot;[variables(&#39;appServiceName&#39;)]&quot;<br>      }<br>    },<br>    {<br>      &quot;name&quot;: &quot;[variables(&#39;webAppName&#39;)]&quot;,<br>      &quot;type&quot;: &quot;Microsoft.Web/sites&quot;,<br>      &quot;apiVersion&quot;: &quot;2018-11-01&quot;,<br>      &quot;location&quot;: &quot;[resourceGroup().location]&quot;,<br>      &quot;tags&quot;: {<br>        &quot;[concat(&#39;hidden-related:&#39;, resourceGroup().id, &#39;/providers/Microsoft.Web/serverfarms/&#39;, variables(&#39;appServiceName&#39;))]&quot;: &quot;Resource&quot;,<br>        &quot;displayName&quot;: &quot;[variables(&#39;webAppName&#39;)]&quot;<br>      },<br>      &quot;dependsOn&quot;: [<br>        &quot;[resourceId(&#39;Microsoft.Web/serverfarms&#39;, variables(&#39;appServiceName&#39;))]&quot;<br>      ],<br>      &quot;identity&quot;: {<br>        &quot;type&quot;: &quot;UserAssigned&quot;,<br>        &quot;userAssignedIdentities&quot;: {<br>          &quot;[resourceId(&#39;Microsoft.ManagedIdentity/userAssignedIdentities&#39;, parameters(&#39;identityName&#39;))]&quot;: {<br>          }<br>        }<br>      },<br>      &quot;properties&quot;: {<br>        &quot;name&quot;: &quot;[variables(&#39;webAppName&#39;)]&quot;,<br>        &quot;serverFarmId&quot;: &quot;[resourceId(&#39;Microsoft.Web/serverfarms&#39;, variables(&#39;appServiceName&#39;))]&quot;,<br>        &quot;siteConfig&quot;: {<br>          &quot;appSettings&quot;: [<br>            {<br>              &quot;name&quot;: &quot;MySqlConnection&quot;,<br>              &quot;value&quot;: &quot;[concat(&#39;Server=&#39;, variables(&#39;mySqlName&#39;), &#39;.mysql.database.azure.com; Port=3306; Database=&#39;, parameters(&#39;mySqlDB&#39;), &#39;; Uid=&#39;, parameters(&#39;mySqlAdminName&#39;), &#39;@&#39;, variables(&#39;mySqlName&#39;), &#39;; Pwd=&#39;, parameters(&#39;mySqlAdminPassword&#39;), &#39;; SslMode=Preferred;persistsecurityinfo=True;&#39;)]&quot;<br>            },<br>            {<br>              &quot;name&quot;: &quot;Host&quot;,<br>              &quot;value&quot;: &quot;[concat(variables(&#39;mySqlName&#39;), &#39;.mysql.database.azure.com&#39;)]&quot;<br>            },<br>            {<br>              &quot;name&quot;: &quot;User&quot;,<br>              &quot;value&quot;: &quot;[concat(parameters(&#39;mySqlMsiUser&#39;), &#39;@&#39;, variables(&#39;mySqlName&#39;))]&quot;<br>            },<br>            {<br>              &quot;name&quot;: &quot;Database&quot;,<br>              &quot;value&quot;: &quot;[parameters(&#39;mySqlDB&#39;)]&quot;<br>            }<br>          ]<br>        }<br>      }<br>    },<br>    {<br>      &quot;apiVersion&quot;: &quot;2017-12-01&quot;,<br>      &quot;type&quot;: &quot;Microsoft.DBforMySQL/servers&quot;,<br>      &quot;name&quot;: &quot;[variables(&#39;mySqlName&#39;)]&quot;,<br>      &quot;location&quot;: &quot;[resourceGroup().location]&quot;,<br>      &quot;tags&quot;: {<br>        &quot;displayName&quot;: &quot;[variables(&#39;mySqlName&#39;)]&quot;<br>      },<br>      &quot;properties&quot;: {<br>        &quot;createMode&quot;: &quot;Default&quot;,<br>        &quot;version&quot;: &quot;[parameters(&#39;mySqlVersion&#39;)]&quot;,<br>        &quot;sslEnforcement&quot;: &quot;Enabled&quot;,<br>        &quot;administratorLogin&quot;: &quot;[parameters(&#39;mySqlAdminName&#39;)]&quot;,<br>        &quot;administratorLoginPassword&quot;: &quot;[parameters(&#39;mySqlAdminPassword&#39;)]&quot;,<br>        &quot;storageProfile&quot;: {<br>          &quot;storageMB&quot;: &quot;[parameters(&#39;mySqlStorageAmountMB&#39;)]&quot;,<br>          &quot;backupRetentionDays&quot;: &quot;[parameters(&#39;mySqlBackupRetentionDays&#39;)]&quot;,<br>          &quot;geoRedundantBackup&quot;: &quot;[parameters(&#39;mySqlGeoRedundantBackups&#39;)]&quot;<br>        }<br>      },<br>      &quot;sku&quot;: {<br>        &quot;name&quot;: &quot;[parameters(&#39;mySqlSku&#39;)]&quot;<br>      },<br>      &quot;resources&quot;: [<br>        {<br>          &quot;type&quot;: &quot;firewallrules&quot;,<br>          &quot;apiVersion&quot;: &quot;2017-12-01&quot;,<br>          &quot;dependsOn&quot;: [<br>            &quot;[concat(&#39;Microsoft.DBforMySQL/servers/&#39;, variables(&#39;mySqlName&#39;))]&quot;<br>          ],<br>          &quot;location&quot;: &quot;[resourceGroup().location]&quot;,<br>          &quot;name&quot;: &quot;AllowAzureIPs&quot;,<br>          &quot;properties&quot;: {<br>            &quot;startIpAddress&quot;: &quot;0.0.0.0&quot;,<br>            &quot;endIpAddress&quot;: &quot;255.255.255.255&quot;<br>          }<br>        }<br>      ]<br>    }<br>  ],<br>  &quot;outputs&quot;: {<br>  }<br>}</pre><p>Note that the template above adds a regular connection string to our web app. This is for demo purposes only. The whole point of this example is to <strong><em>not</em></strong> have a connection string with username and password. So in your real-life code, remove the connection string and just go for Managed Identity!</p><p>You can deploy the template shown above using the Azure CLI as follows:</p><pre># Resoure Group Name<br>RG=&quot;MySql-with-MSI&quot;</pre><pre># Base name; Azure ressource names will be derived from it<br># (e.g. mysql-$BASE, webapp-$BASE, etc.)<br>BASE=&quot;mysql-msi-poc&quot;</pre><pre># Login and set subscription<br>az login --use-device-code<br>az account set --subscription &quot;...&quot;</pre><pre># Deploy resource group<br>az deployment group create --resource-group $RG --template-file deploy.json --parameters mySqlAdminPassword=Sup3rSecuePazzw0rd identityName=mySqlIdentity baseName=mysql-msi-poc</pre><h3>Managed Identity</h3><p>The ARM Template shown above create a user-assigned managed identity in AAD called mySqlIdentity. The web app needs the <em>Client ID</em> aka <em>Application ID</em> of the managed identity. Unfortunately, I have not found a way to get this ID directly inside the ARM template. If you know how this can be done, please contact me. However, it can easily be set after the ARM Template has been deployed in just two lines of Azure CLI code:</p><pre>CLIENT_ID=$(az identity list --resource-group $RG --query &quot;[?name==&#39;mySqlIdentity&#39;].clientId&quot; --output tsv)</pre><pre>az functionapp config appsettings set --name webapp-$BASE --resource-group $RG --settings &quot;ClientID=$CLIENT_ID&quot;</pre><h3>MySQL AAD Administration</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/963/1*pgmM-XbKNhmyrRkZChloDw.png" /><figcaption>Image Source: <a href="https://docs.microsoft.com/en-us/azure/mysql/concepts-azure-ad-authentication#administrator-structure">Microsoft</a></figcaption></figure><p>Now we need to create a user in MySQL representing our managed identity. Unfortunately, this cannot be done with the regular MySQL administrator account. We need an AAD account with MySQL administrative privileges. This account can create the MySQL user for managed identity.</p><p>If you have an existing AAD user (<em>no</em> Microsoft Account or something similar) that you want to use, you are fine. If not, you can easily create one with the Azure CLI:</p><pre>AAD_DOMAIN=&quot;yourdomain.onmicrosoft.com&quot;<br>AAD_USER=&quot;mysqladmin&quot;<br>AAD_ADMIN=$AAD_USER@$AAD_DOMAIN</pre><pre>az ad user create --display-name $AAD_USER --password Sup3rSecuePazzw0rd --user-principal-name $AAD_ADMIN</pre><p>We need to get the AAD user’s object ID:</p><pre># Get ID and Email of specified AAD Admin<br>AAD_ADMIN_ID=$(az ad user show --id $AAD_ADMIN --query &quot;objectId&quot; --output tsv)<br>AAD_ADMIN_EMAIL=$(az ad user show --id $AAD_ADMIN --query &quot;userPrincipalName&quot; --output tsv)</pre><p>Now we can assign our AAD user as the AAD administrator of our MySQL database:</p><pre>az mysql server ad-admin create --server-name mysql-$BASE -g $RG --display-name $AAD_ADMIN_EMAIL --object-id $AAD_ADMIN_ID</pre><p>It would be so nice if all these steps could be done directly in the ARM Template. Unfortunately, I have not found a way to do that. If you know one, please let me know.</p><h3>Creating MySQL User for Managed Identity</h3><p>With the AAD MySQL administrator, we can create a MySQL user for our web app’s managed identity. For that, I recommend opening a <a href="https://docs.microsoft.com/en-us/azure/cloud-shell/overview">Cloud Shell</a>. Note that you have to be <strong>signed in with the AAD MySQL administrator</strong> that we created before.</p><p>Let’s start the MySQL CLI and authenticate with the AAD MySQL administrator:</p><pre>DB_ID=mysql-$BASE.mysql.database.azure.com</pre><pre>mysql -h $DB_ID --user $AAD_ADMIN@mysql-$BASE --enable-cleartext-plugin --password=`az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken`</pre><p>I recommend trying az account get-access-token... separately. Copy the token and examine it using e.g. <a href="https://jwt.io/">https://jwt.io/</a>. You might get additional insights into how AAD authentication with MySQL works.</p><p>Once you have MySQL CLI running, create the MySQL user and give it the necessary permissions (note that $CLIENT_ID has to be replaced with the Client ID of the managed identity; see corresponding variable in the Azure CLI scripts shown above):</p><pre>SET aad_auth_validate_oids_in_tenant = OFF;<br>CREATE AADUSER &#39;msiuser&#39; IDENTIFIED BY &#39;$CLIENT_ID&#39;;<br>GRANT SELECT ON *.* TO &#39;msiuser&#39;;</pre><h3>C# Sample</h3><p>That’s it for the Azure configuration part. We have:</p><ul><li>The Managed Identity. It has also be created in MySQL and given proper permissions.</li><li>The App Service with the Web App. We assigned the Managed Identity to it.</li></ul><p>Now let us create a simple C# client that we can use to verify that everything works. Note that this client uses the <a href="https://www.nuget.org/packages/MySqlConnector/"><em>MySqlConnector</em></a> NuGet package. Note that <a href="https://docs.microsoft.com/en-us/azure/mysql/howto-configure-sign-in-azure-ad-authentication#compatibility-with-application-drivers">not all drivers are compatible</a> with MySQL AAD integration. <a href="https://www.nuget.org/packages/MySqlConnector/"><em>MySqlConnector</em></a> is.</p><pre>using System;<br>using System.Collections.Generic;<br>using System.IO;<br>using System.Linq;<br>using System.Net;<br>using System.Text.Json;<br>using System.Threading.Tasks;<br>using Microsoft.AspNetCore.Mvc;<br>using Microsoft.Extensions.Configuration;<br>using Microsoft.Extensions.Logging;<br>using MySql.Data.MySqlClient;</pre><pre>namespace MySqlTest.Controllers<br>{<br>    [ApiController]<br>    [Route(&quot;[controller]&quot;)]<br>    public class MySqlController : ControllerBase<br>    {<br>        private readonly ILogger&lt;MySqlController&gt; _logger;<br>        private readonly IConfiguration _configuration;</pre><pre>public MySqlController(ILogger&lt;MySqlController&gt; logger, IConfiguration configuration)<br>        {<br>            _logger = logger;<br>            _configuration = configuration;<br>        }</pre><pre>[HttpGet]<br>        [Route(&quot;withAdmin&quot;)]<br>        public async Task&lt;string&gt; GetWithAdmin()<br>        {<br>            using var conn = new MySqlConnection(_configuration[&quot;MySqlConnection&quot;]);<br>            await conn.OpenAsync();<br>            using var cmd = conn.CreateCommand();<br>            cmd.CommandText = &quot;SELECT 1 AS X&quot;;<br>            return (await cmd.ExecuteScalarAsync()).ToString();<br>        }</pre><pre>[HttpGet]<br>        [Route(&quot;withManagedIdentity&quot;)]<br>        public async Task&lt;string&gt; GetWithManagedIdentity()<br>        {<br>            var builder = new MySqlConnectionStringBuilder<br>            {<br>                Server = _configuration[&quot;Host&quot;],<br>                Database = _configuration[&quot;Database&quot;],<br>                UserID = _configuration[&quot;User&quot;],<br>                Password = await GetAccessToken(),<br>                SslMode = MySqlSslMode.Required,<br>            };</pre><pre>using var conn = new MySqlConnection(builder.ConnectionString);<br>            try<br>            {<br>                await conn.OpenAsync();</pre><pre>using var cmd = conn.CreateCommand();<br>                cmd.CommandText = &quot;SELECT 1 AS X&quot;;<br>                return (await cmd.ExecuteScalarAsync()).ToString();<br>            }<br>            catch (Exception ex)<br>            {<br>                return ex.Message;<br>            }<br>        }</pre><pre>[HttpGet]<br>        [Route(&quot;token&quot;)]<br>        public async Task&lt;string&gt; GetToken()<br>        {<br>            return await GetAccessToken();<br>        }</pre><pre>private async Task&lt;string&gt; GetAccessToken()<br>        {<br>            var clientID = _configuration[&quot;ClientID&quot;];<br>            var request = (HttpWebRequest)WebRequest.Create($&quot;{_configuration[&quot;MSI_ENDPOINT&quot;]}?api-version=2019-08-01&amp;resource=https%3A%2F%2Fossrdbms-aad.database.windows.net&amp;client_id=&quot; + clientID);<br>            request.Headers[&quot;Metadata&quot;] = &quot;true&quot;;<br>            request.Headers[&quot;X-IDENTITY-HEADER&quot;] = _configuration[&quot;MSI_SECRET&quot;];<br>            request.Method = &quot;GET&quot;;</pre><pre>// Call managed identities for Azure resources endpoint.<br>            var response = (HttpWebResponse)request.GetResponse();</pre><pre>// Pipe response Stream to a StreamReader and extract access token.<br>            StreamReader streamResponse = new StreamReader(response.GetResponseStream());<br>            var stringResponse = await streamResponse.ReadToEndAsync();<br>            var list = JsonSerializer.Deserialize&lt;Dictionary&lt;string, string&gt;&gt;(stringResponse);<br>            return list[&quot;access_token&quot;];<br>        }<br>    }<br>}</pre><p>Note that this is by far <strong><em>not</em></strong> production-ready code. It is just a sample demonstrating how it is generally done. Here a few notes:</p><ul><li><em>GetWithAdmin()</em> demonstrate the usual way to access MySQL using username and password.</li><li><em>GetAccessToken()</em> shows how you can get the access token using Managed Identity. Note that in practice you will <strong><em>never</em></strong> expose that information. However, for learning purposes, I created a route with which you can get the access token through your browser. Again, I recommend analyzing it to get a deeper understanding for the matter.</li><li>Finally, <em>GetWithManagedIdentity()</em> demonstrates how to authenticate to MySQL with the access token retrieved using Managed Identity.</li></ul><p>Build it, deploy it to the App Service Web App that our ARM Template created, and try <em>https://yoursite.azurewebsites.net/MySQL/withManagedIdentity</em>. It should successfully return <em>1</em>.</p><h3>Conclusion</h3><p>Managed Identity enhances your system’s security because you do not have to set and regularly change DB passwords manually. Integration of Managed Identity with MySQL isn’t super simple, but once you got the things mentioned above figured out, it works pretty well. Hope this article will be useful for you.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=698128dc53fa" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/azure-mysql-with-aad-and-managed-identity-698128dc53fa">Azure MySQL with AAD and Managed Identity</a> was originally published in <a href="https://blog.devgenius.io/">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>