<?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 Alexis T. on Medium]]></title>
        <description><![CDATA[Stories by Alexis T. on Medium]]></description>
        <link>https://medium.com/@atondelier?source=rss-7f087a191308------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*bj5W2U37VcI5UM0xT-SRDg.jpeg</url>
            <title>Stories by Alexis T. on Medium</title>
            <link>https://medium.com/@atondelier?source=rss-7f087a191308------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:10:50 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@atondelier/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[NodeJS streams are simple yet powerful]]></title>
            <link>https://medium.com/@atondelier/nodejs-streams-are-simple-yet-powerful-a009c73c8386?source=rss-7f087a191308------2</link>
            <guid isPermaLink="false">https://medium.com/p/a009c73c8386</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[stream]]></category>
            <dc:creator><![CDATA[Alexis T.]]></dc:creator>
            <pubDate>Wed, 23 Aug 2023 10:35:29 GMT</pubDate>
            <atom:updated>2023-08-23T10:35:29.510Z</atom:updated>
            <content:encoded><![CDATA[<h4>Understand streams, pipes, pipelines, and composition without code. Free your data intensive jobs from OOMs.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*icd6mqDxKaU6ExeW" /><figcaption>Photo by <a href="https://unsplash.com/@diesektion?utm_source=medium&amp;utm_medium=referral">Robert Anasch</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>I’ve this NodeJS production batch job that was failing more and more. We solved it: we increased memory limits! By the way, have you looked at the cloud provider bill this month?</blockquote><p>Well, this imaginary developer might have benefited from using NodeJS Streams!</p><blockquote>Streams are complicated, I’ll spend hours migrating code.</blockquote><p>He’s right. Last minute learning is prone to</p><ul><li>Going straight to the code and getting a limited low-order understanding</li><li>Mistakes, causing errors or inconsistencies</li></ul><p>For developers used to working with small and bounded inputs, working with streams is a paradigm shift. It takes some time to develop intuition.</p><p>Let’s take that time!</p><h3>Goal</h3><p>Help you get a high-order understanding of NodeJS streams.</p><h3>Approach</h3><p>I’ll</p><ul><li>Share few bookmarks to keep aside or for later</li><li>Explore the general case of a stream, being used as a destination you write to and/or a source you read from</li><li>Explore 3 ways to combine them, each stacking on top of the previous one</li></ul><p>Then your job will be to</p><ul><li>Let these information rest in your brain</li><li>Relate to a real use case (this time, looking at the bookmarks)</li></ul><h3>Bookmarks</h3><p>It may happen that you know these pages. They are code oriented. They are for you to see how what we’ll discuss applies in code.</p><h4>Official documentation</h4><p><a href="https://nodejs.org/api/stream.html">Stream | Node.js v26.5.0 Documentation</a></p><h4>About <a href="https://en.wikipedia.org/wiki/Back_pressure">backpressure</a></h4><p><a href="https://nodejs.org/fr/docs/guides/backpressuring-in-streams">Backpressuring in Streams | Node.js</a></p><h3>Stream general case</h3><p>Have a first overall look. Come back to identify the pieces we defined briefly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_3FSu-Yv99Gp1qPxeMneZA.png" /><figcaption>A stream is a box with an input and an ouput to plug, an antenna and many buttons.</figcaption></figure><h4>Chunked writes and reads</h4><p>Streams can be written to, and read from.</p><p>A stream that is only writable, is actually read by the system (e.g. stdout).</p><p>A stream that is only readable, is actually written to by the system (e.g. stdin).</p><p>A stream that is both is called a Duplex.</p><p>A stream that also transforms chunks is called a Transform.</p><p>What’s written or read can be chunks of bytes, or object references (object mode ON).</p><h4>Contained writes and reads</h4><p>While the write stream internal buffer has not reached defined writable high water mark, it won’t tell the writer to stop writing.</p><p>While reading the read stream, read binary chunk size will be limited by the readable high water mark.</p><p>Optionally, the stream can handle an abort signal.</p><h4>Events</h4><p>Both sides of the stream emit events related to their state.</p><h3>Stream pipes</h3><p>A stream alone is not very useful. One readable stream can be piped into a writable stream. Pipes specifically handle back pressure.</p><p>In the image below, the back pressure mechanism implies that A won’t overwhelm B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*l2w-Rp5s3BLiLlpqRRdYjA.png" /><figcaption>Stream A piped into stream B</figcaption></figure><p>This time, have a deep look at the already bookmarked page below</p><p><a href="https://nodejs.org/fr/docs/guides/backpressuring-in-streams#lifecycle-of-pipe">Backpressuring in Streams | Node.js</a></p><p>Interactions are just defined between pairs of streams. Pipes are not returning a construct around the piped streams that would decide of the fate of the streams (e.g. after an error).</p><p>(Only the end of the readable stream defaults to also ending the writable stream)</p><p>To get control, we need a new construct: stream pipelines.</p><h3>Stream pipelines</h3><p>The box around the many streams of the pipeline adds</p><ul><li>Error forwarding</li><li>Proper cleanup when streams finish their work</li><li>A callback when the pipeline is complete (used for providing the Promise based API)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*694UVpJIN36lfdEyJ8wA8A.png" /><figcaption>The pipeline pipes A into B, etc., and adds a control layer (the outer box).</figcaption></figure><p>Note that the input of A and output of B are not shown, to illustrate that pipelines are often used for closed circuits, in the sense that no one is meant to add pipes to or from these streams.</p><p>To achieve that, we would need another construct: the stream composition.</p><h3>Stream composition</h3><p>Last of them, the composition of streams provides reusable pipelines as a Duplex stream.</p><p>When writing to the composed stream, you actually write to the first (A).</p><p>When reading from the composed stream, you actually read from the last (B).</p><p>Each provided stream is piped into the next with a pipeline.</p><p>If any of the streams error then all are destroyed, including the outer Duplex stream.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4iyDALerFlybBjUcfJPGHg.png" /><figcaption>Stream composition is a pipeline with a pluggable input and output.</figcaption></figure><h3>What could have come next?</h3><p>Few powerful stuff to have a look at if you don’t have a use case but want to get more ingredients</p><ul><li>create streams with generators</li><li>abort useless computation with the abort signal</li><li>get more concise with the experimental readable functional operators (think usual Array method but for streams, or think Rx)</li><li>explore stream helper libraries and see how they are made</li></ul><h3>Conclusion</h3><p>Now that’s on you</p><ul><li>Let these information rest in your brain</li><li>Relate to a real use case of your own (this time, referring to the bookmarked pages)</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a009c73c8386" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keycloak for production level SaaS authentication]]></title>
            <link>https://medium.com/@atondelier/keycloak-for-production-level-saas-authentication-b2ef0b1138d4?source=rss-7f087a191308------2</link>
            <guid isPermaLink="false">https://medium.com/p/b2ef0b1138d4</guid>
            <category><![CDATA[keycloak]]></category>
            <category><![CDATA[authentication]]></category>
            <dc:creator><![CDATA[Alexis T.]]></dc:creator>
            <pubDate>Wed, 09 Aug 2023 17:58:52 GMT</pubDate>
            <atom:updated>2023-08-09T17:58:52.872Z</atom:updated>
            <content:encoded><![CDATA[<h3>Open source on premise authentication with persisted sessions, SSO, MFA</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zJMt9AOu5m6jpIj8" /><figcaption>Photo by <a href="https://unsplash.com/@eugi1492?utm_source=medium&amp;utm_medium=referral">Eugenio Mazzone</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Sooner or later, your SaaS application is going to need to diversify its authentication flows, e.g.</p><ul><li>To add signup or authentication via social networks as identity providers</li><li>To integrate with business customers authentication systems</li><li>To provision users with your main company directory</li></ul><p>Moreover, it’s going to require</p><ul><li>High Availability</li><li>Sessions persistence (because yes, by default, sessions are in caches, and caches are in memory)</li></ul><p>Keycloak is easy to demonstrate on your local environment, but a little bit harder to have it work with such production grade features, and production environment constraints.</p><h3>Goal</h3><p>Goal is to share insights about all these common things you’ll have to de-risk ahead or along your project and be confident that Keycloak offers a way to achieve what you want.</p><h3>Disclaimers</h3><p>This article is not about comparing with other solutions. We assume that you, or someone else, have already made a decision.</p><p>This is not a documentation either. When possible, I’ll just share a link to better explanations.</p><h3>Overview</h3><h4>Pre requisites</h4><p>Let’s consider you already did the followings</p><ul><li>You got Keycloak running with the public <a href="https://www.keycloak.org/getting-started/getting-started-docker">Keycloak Docker image</a></li><li>It runs with all default options in dev mode</li><li>You have an infrastructure that has the capabilities to do load balancing, and to communicate with internal or external database servers</li></ul><p>So you can play with the Keycloak UI, and experience the authentication flows you just configured from the account console login page.</p><h4>What’s in this post</h4><p>First we list a bunch of resources useful to understand the surrounding concepts, verify your assumptions, get inspiration, and check documented behaviors against the source code.</p><p>Then, the following topics are briefly covered, trying each time to link existing documentation and/or examples</p><ul><li>Custom Keycloak build</li><li>Keycloak behind a proxy</li><li>Keycloak for High availability (inc. ping with JGroups and Load balancing)</li><li>Caches (local, distributed, remote with Infinispan)</li><li>Persistence (inc. new Map Storage)</li><li>Token introspection</li><li>Backchannel logout from external IDP</li><li>Login with preselected external IDP</li><li>Logout without logging out from an external IDP</li><li>Configure parameters for an external IDP (e.g. ACR values)</li><li>Extend Keycloak with your own providers</li><li>Extend Keycloak with themes</li><li>Connect your company Directory</li><li>Manage customer specific SSO with multiple realms</li><li>Setup Multi Factor Authentication</li><li>Setup Observability (logs and metrics)</li></ul><h3>Bookmarks for you</h3><h4>Early bookmarks</h4><p>Improve your understanding, and sometimes find undocumented clues, digging into Keycloak sources.</p><p><a href="https://github.com/keycloak/keycloak">GitHub - keycloak/keycloak: Open Source Identity and Access Management For Modern Applications and Services</a></p><p>Always keep the options documentation close to you.</p><p><a href="https://www.keycloak.org/server/all-config">All configuration</a></p><p>Get inspired by the application integration quick starts, depending on your technology.</p><ul><li><a href="https://github.com/keycloak/keycloak-quickstarts">GitHub - keycloak/keycloak-quickstarts</a></li><li><a href="https://github.com/dasniko/keycloak-bookshop-demo">GitHub - dasniko/keycloak-bookshop-demo: Demo for how to integrate Keycloak into Quarkus and Spring Boot apps and services. All (most) kinds of authentication (web app, service account, client, bearer-only...)</a></li></ul><p>Get inspired by the project examples with deployment configurations, again depending on the middlewares you use.</p><p><a href="https://github.com/thomasdarimont/keycloak-project-example">GitHub - thomasdarimont/keycloak-project-example: An example project for Keycloak Customizations</a></p><p>Get inspired by the many extensions implemented here, to get a grasp of all what you can extend in Keycloak behaviors.</p><p><a href="https://github.com/thomasdarimont/keycloak-extension-playground">GitHub - thomasdarimont/keycloak-extension-playground: Simple project environment for creating custom Keycloak extensions</a></p><h4>For bookworms</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/405/0*9xBu70nod-OwUZ7j.jpg" /><figcaption><a href="https://www.goodreads.com/book/show/140324771-keycloak---identity-and-access-management-for-modern-applications"><strong>Keycloak — Identity and Access Management for Modern Applications</strong></a></figcaption></figure><p>Solid explanation of the concepts and how to use them in Keycloak.</p><p><a href="https://www.goodreads.com/book/show/140324771-keycloak---identity-and-access-management-for-modern-applications">Goodreads</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/264/0*PxQkRiTGa21LnHb9.png" /><figcaption><a href="https://www.goodreads.com/book/show/48581321-api-security-in-action"><strong>API Security in Action</strong></a></figcaption></figure><p>Much wider scope, gives a lot of context. Not specific about Keycloak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*ubtadKiPeEDHKHgo.jpg" /><figcaption><a href="https://www.goodreads.com/book/show/49950389-solving-identity-management-in-modern-applications"><strong>Solving Identity Management in Modern Applications</strong></a></figcaption></figure><p>Quite redundant with the previous one, depends on the editor you prefer. Not specific about Keycloak.</p><h4>Video channels</h4><p>Youtube has a lot of tutorial videos about Keycloak. Among them here are 2 authors who have been very useful to me (sorry the second is in French)</p><ul><li><a href="https://www.youtube.com/@dasniko">Niko Köbler (@dasniko) - Keycloak Expert</a></li><li><a href="https://www.youtube.com/@xavki">xavki</a></li></ul><h4>Blogs</h4><p>Better find the pages from Google searches, but you’ll often end on one of JANUA’s blog posts.</p><p><a href="https://www.janua.fr/securing-apps-and-services-with-keycloak/">Securing apps and services with Keycloak - JANUA</a></p><h3>Let’s dive in</h3><h4>Custom build</h4><p>Refer to the following documentation</p><p><a href="https://www.keycloak.org/server/containers">Running Keycloak in a container</a></p><p>Here you should observe the 2 distinct phases (open <a href="https://www.keycloak.org/server/all-config">All Configurations</a> bookmark alongside)</p><ul><li><strong>Build time</strong>, which accepts a set of options, and builds with the custom providers you may have provided as JAR files in the /opt/keycloak/providers folder in the image</li><li><strong>Run time</strong>, which accepts another set of options, and other specifics that we’ll see later, like the cache configuration file</li></ul><h4>Keycloak behind a proxy</h4><p>Refer to the following documentation</p><p><a href="https://www.keycloak.org/server/reverseproxy">Using a reverse proxy</a></p><p>For instance, considering you access the Keycloak server from <a href="http://kc.myapp.local:8080,">http://kc.myapp.local:8080,</a> run your Keycloak servers with the following environment variables (or equivalent configuration options)</p><pre>KC_PROXY=edge<br>KC_HTTP_ENABLED=true<br>KC_HOSTNAME_URL=http://kc.myapp.local:8080<br>KC_HOSTNAME_ADMIN_URL=http://kc.myapp.local:8080</pre><p>Refer to the documentation of your proxy to set it up (e.g. <a href="https://docs.nginx.com/nginx/admin-guide/load-balancer/http-load-balancer/">nginx</a>, <a href="https://www.haproxy.com/blog/haproxy-configuration-basics-load-balance-your-servers">haproxy</a>).</p><h4>Keycloak for High availability (inc. ping with JGroups and Load balancing)</h4><p>Understand the basics of cluster setup with</p><p><a href="https://www.keycloak.org/docs/18.0/server_installation/#_clustering">Server Installation and Configuration Guide</a></p><p>Then</p><ul><li>Either ensure your load balancer is using sticky sessions, so that the instances do not have to know each other and distribute the sessions caches</li><li>Or to stick to setting the <a href="https://www.keycloak.org/server/all-config?q=cache-stack">cache-stack options</a> or the equivalent KC_CACHE_STACK environment variable that matches your infrastructure, for all instances to communicate</li></ul><h4>Caches (local, distributed, remote with Infinispan)</h4><p>You have a cluster of Keycloak servers behind a load balancer. You understand there is a distinction between the configurations that Keycloak keeps in database (realms, clients, users, etc.), and the ephemeral objects that are kept in memory (sessions and other stuff).</p><p>Keycloak accepts Infinispan (ISPN) cache configuration files. The Infinispan caches are</p><ul><li>Either managed by Keycloak, in memory, and distributed among the instances of the cluster</li><li>Or managed by another cluster, a cluster of Infinispan servers, behind a load balancer, which also deal with its own configuration file, predefining the named caches that will exist, their persistence mode, and the stack on which they ping each other</li></ul><p>Get to know what’s Infinispan</p><p><a href="https://infinispan.org/docs/stable/titles/overview/overview.html">Infinispan 14.0 documentation index</a></p><p>and how its caches are configured</p><p><a href="https://infinispan.org/docs/stable/titles/configuring/configuring.html">Configuring Infinispan caches</a></p><p>Run an Infinispan server then a cluster of it, with the <a href="https://hub.docker.com/r/infinispan/server">public docker image</a>, then, get a lot of inspiration from the great deployment example by Thomas Darimont.</p><p><a href="https://github.com/thomasdarimont/keycloak-project-example/tree/main/deployments/local/clusterx/haproxy-external-ispn-database">keycloak-project-example/deployments/local/clusterx/haproxy-external-ispn-database at main · thomasdarimont/keycloak-project-example</a></p><p>The key right now is to understand how the &lt;remote-server ...&gt;&lt;/remote-server&gt; play a role in the Keycloak Infinispan configuration, and how the cache definitions in Keycloak Infinispan configuration match the cache definition in the Infinispan server cache configuration file itself.</p><p>See that it already contain the configuration to actually persist the caches in a PostgreSQL database via a JDBC driver (you may ignore that for now). Without persistence configuration, caches are still saved in memory, which still saves you from loosing the sessions if all the whole Keycloak cluster goes down.</p><h4>Persistence (inc. new Map Storage)</h4><p>We have not waited for long. Here we focus on persistence.</p><p>Basically, Keycloak is known for the hard work to do to actually guarantee no loss of sessions. Configuring the caches to persist data in any data store your JDBC driver can talk to, is the only option you have.</p><p>Go back to the previous example, which was</p><p><a href="https://github.com/thomasdarimont/keycloak-project-example/tree/main/deployments/local/clusterx/haproxy-external-ispn-database">keycloak-project-example/deployments/local/clusterx/haproxy-external-ispn-database at main · thomasdarimont/keycloak-project-example</a></p><p>Wait! Dare you use experimental features, get to know the Map Storage experimental feature</p><p><a href="https://www.keycloak.org/2022/07/storage-map.html">New storage in Keycloak</a></p><h4>Token introspection</h4><p>It’s often a production requirement to enforce instant token revocation when closing some users sessions.</p><p>Nowadays, many applications are frontend Single Page Applications (SPA), that have no endpoint to call for backchannel logout. So that’s the job of the application Backend For Frontend (BFF) to always introspect the token against Keycloak.</p><p>For that sake, you’ll find all you need in this documentation about how to proceed with Nginx</p><p><a href="https://docs.nginx.com/nginx-management-suite/acm/tutorials/introspection-keycloak/">OAuth2 Introspection with Keycloak</a></p><h4>Backchannel logout from external IDP</h4><p>Suppose you configured an external OpenID Connect (OIDC) Identity Provider (IDP) which you user can use to connect with, and you are asked to provide a backchannel logout endpoint for this IDP to be able to disconnect users on your side when the user disconnects from the IDP.</p><p>You’ll have to provide the undocumented OIDC backchannel logout endpoint, highlighted in this source code, corresponding to https://&lt;your hostname&gt;/realms/&lt;realm&gt;/protocol/openid-connect on which you should POST data containing a validlogout_token .</p><p><a href="https://github.com/keycloak/keycloak/blob/0f2ca3bfddeeeece06cae4cbd1f7122adb261eed/services/src/main/java/org/keycloak/protocol/oidc/endpoints/LogoutEndpoint.java#L563">keycloak/services/src/main/java/org/keycloak/protocol/oidc/endpoints/LogoutEndpoint.java at 0f2ca3bfddeeeece06cae4cbd1f7122adb261eed · keycloak/keycloak</a></p><h4>Login with preselected external IDP</h4><p>The external IDP to login with can be preselected at the authentication flow level, or at the client application level.</p><p>See the already existing documentation about that</p><p><a href="https://www.keycloak.org/docs/latest/server_admin/#default_identity_provider">Server Administration Guide</a></p><h4>Logout without logging out from an external IDP</h4><p>If you’ve configured a logout endpoint in the configuration of an IDP on Keycloak admin UI, then Keycloak is going to call the logout endpoint of each IDP when a user logs out of your application.</p><p>To avoid that behavior, provide the initiating_idp parameter to the logout endpoint as documented here</p><p><a href="https://www.keycloak.org/docs/latest/securing_apps/index.html#logout">Securing Applications and Services Guide</a></p><h4>Configure parameters for an external IDP (e.g. ACR values)</h4><p>Keycloak already provides parameters in the OIDC URLs so that the authentication flow goes well. In turn the OIDC adapter on your application is also doing the job of sending the relevant parameters along the way.</p><p>Keycloak server is redirecting the browser to the IDP authorization endpoint. There is no way on the frontend application to add parameters, like the ACR values expected by the external IDP.</p><p>In such a case, know that you can provide additional query parameters to the Authorization URL, with just appending ?acr_values=lorem_ipsum to the value, on the IDP configuration page on Keycloak Admin.</p><h4>Extend Keycloak with your own providers</h4><p>We already highlighted that the extensions you write should be provided as JAR files in the /opt/keycloak/providers folder in the image.</p><p>For writing extensions, refer to the documentation</p><p><a href="https://www.keycloak.org/docs/latest/server_development/#_extensions">Server Developer Guide</a></p><p>Here the bookmarks at the beginning of this post will be very useful! To avoid some scrolling, see</p><p><a href="https://github.com/thomasdarimont/keycloak-extension-playground">GitHub - thomasdarimont/keycloak-extension-playground: Simple project environment for creating custom Keycloak extensions</a></p><h4>Extend Keycloak with themes</h4><p>On the same documentation page, you’ll find the instructions to create a custom theme</p><p><a href="https://www.keycloak.org/docs/latest/server_development/#_themes">Server Developer Guide</a></p><p>And the same repository contains themes examples!</p><p><a href="https://github.com/thomasdarimont/keycloak-extension-playground">GitHub - thomasdarimont/keycloak-extension-playground: Simple project environment for creating custom Keycloak extensions</a></p><h4>Connect your company Directory</h4><p>You have an internal applications, where users correspond to employees.</p><p>You want</p><ul><li>To let users connect to your application with your Directory</li><li>To have your directory provision your users</li></ul><p>To achieve this with Google Workspace, or get inspiration to connect your Directory via SAML, read this already written tutorial</p><p><a href="https://medium.com/@nk-kumawat/gsuite-saml-app-with-keycloak-idp-initiated-sso-518d3e322a39">Gsuite SAML app with Keycloak (IDP initiated SSO)</a></p><p>The only limitation faced is a bug that may have been fixed at the time of reading, which implies that the user cannot initiate login to your application directly from the application declared on your Directory UI.</p><h4>Manage customer specific SSO with multiple realms</h4><p>Keycloak does not come with a way to constrain the usage of a given configured external IDP to authenticate a user, depending on some external parameter.</p><p>The only way to segregate the login experience between users, is to configure multiple realm, one for each setup, and have your application have a landing page that helps determine which realms login page to send the user to.</p><p>For instance, the user may be requested to enter a company ID, then be redirected to the realm’s login page corresponding to that company.</p><p>Alternatively, you may consider exploring the following extension</p><p><a href="https://github.com/p2-inc/keycloak-orgs">GitHub - p2-inc/keycloak-orgs: Single realm, multi-tenancy for SaaS apps</a></p><h4>Setup Multi Factor Authentication</h4><p>Keycloak does not come with a lot of options for achieving Multi Factor Authentication (MFA).</p><p>For MFA via email, see the bookmarked extension playground</p><p><a href="https://github.com/thomasdarimont/keycloak-extension-playground/blob/d7e23d7aed664b79917d672bacebbb9ca8977ab4/dynamic-email-code-auth-extension/src/main/java/com/github/thomasdarimont/keycloak/auth/emailcode/EmailCodeAuthenticatorForm.java#L26">keycloak-extension-playground/dynamic-email-code-auth-extension/src/main/java/com/github/thomasdarimont/keycloak/auth/emailcode/EmailCodeAuthenticatorForm.java at d7e23d7aed664b79917d672bacebbb9ca8977ab4 · thomasdarimont/keycloak-extension-playground</a></p><p>For MFA via SMS, see</p><p><a href="https://github.com/cooperlyt/keycloak-phone-provider">GitHub - cooperlyt/keycloak-phone-provider: A Keycloak provider for phone and SMS</a></p><p>Then you’ll be able to configure authentication flows where the user has a choice between the configured authenticators corresponding to each of these factor specific authentications.</p><h4>Setup Observability (logs and metrics)</h4><p>For <strong>logs</strong></p><ul><li>Add logs in your extensions</li><li>React to common events by implementating the EventListenerProvider interface</li></ul><p>As an example of custom event listener implementation, see</p><p><a href="https://github.com/project-ncl/keycloak-custom-listener/blob/main/src/main/java/org/jboss/pnc/keycloakcustomlistener/CustomEventListenerProvider.java">keycloak-custom-listener/src/main/java/org/jboss/pnc/keycloakcustomlistener/CustomEventListenerProvider.java at main · project-ncl/keycloak-custom-listener</a></p><p>For <strong>metrics</strong>, just refer to this official documentation</p><p><a href="https://www.keycloak.org/server/configuration-metrics">Enabling Keycloak Metrics</a></p><p>then setup the scraping process with Prometheus or the collector you are dealing with.</p><h3>Conclusion</h3><p>So many topics can be covered about Keycloak. And here are just a few!</p><p>You may have ended on this post after a Google search because you are planning an implementation and want to de-risk some areas. I hope this and all the linked resources have helped you in this process!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b2ef0b1138d4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[NodeJS memory leaks analysis]]></title>
            <link>https://medium.com/@atondelier/nodejs-memory-leaks-analysis-e96af5f0f277?source=rss-7f087a191308------2</link>
            <guid isPermaLink="false">https://medium.com/p/e96af5f0f277</guid>
            <category><![CDATA[memory-management]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[memory-leak]]></category>
            <category><![CDATA[devtools]]></category>
            <dc:creator><![CDATA[Alexis T.]]></dc:creator>
            <pubDate>Fri, 04 Aug 2023 17:42:42 GMT</pubDate>
            <atom:updated>2023-08-04T17:42:42.480Z</atom:updated>
            <content:encoded><![CDATA[<h4>From your temporary dev to long-running instable production environments</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Snv1vISkNbUqZ8WD" /><figcaption>Photo by <a href="https://unsplash.com/@davidkovalenkoo?utm_source=medium&amp;utm_medium=referral">David Kovalenko</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Investigating memory leaks is known to be hard for 2 main reasons</p><ul><li>They seem to often <strong>impact</strong> <strong>environments that are hard to investigate</strong></li><li>The <strong>necessary skills are as rarely acquired</strong> as this kind of incident occurs</li></ul><p>An environment can be hard to investigate for some reasons</p><ul><li>It handles <strong>sensitive data</strong></li><li>It handles datasets or scenario that are <strong>hard to reproduce locally</strong></li><li>You need <strong>specific rights and tooling</strong> to connect to the nodes the application is running on</li><li>It’s <strong>not fault tolerant</strong> (freezes, crashes) and you <strong>cannot afford a service disruption</strong></li></ul><p>Acquiring the skills is rare because</p><ul><li>Such incidents <strong>hopefully occur rarely</strong></li><li>Alternatives like <strong>planned restarts</strong> or just accepting it are too often preferred</li><li>Investigations are often reserved to <strong>some individuals with a declared expertise</strong></li></ul><h3>Goal</h3><p>The goal here is to share elements to increase your skills and make you feel confident enough to investigate memory leaks.</p><p>All what follows can apply to your local dev environment. But the true intent is to help you do it on production environments, when you really need it, knowing the risks and limitations.</p><h3>Overview</h3><p>With your observability tooling, confirm you have a memory leak</p><ul><li>With memory capped to twice what it needs, confirm your application crashes with an Out Of Memory (OOM) error</li><li>With same traffic level, confirm that over time, the minimum heap size becomes greater and greater</li></ul><p>Open a communication channel with the process</p><ul><li>Obtain exec rights on the same host or implement a dedicated and protected endpoint (to open the inspector port)</li><li>Obtain rights to expose or forward ports (for dev tools client to connect), or reuse your exec rights if you got some (to inspect with the REPL)</li></ul><p>Enable the inspector</p><ul><li>From inside the application</li><li>With a signal</li><li>With the inspect command</li></ul><p>Choose the application conditions</p><ul><li>Recent or unstable NodeJS version</li><li>In quarantine or with traffic, or a mix of the two</li><li>Short period or full period</li><li>Atomic transactions, compensated later, or just don’t care</li><li>Early or late in the leak progression</li><li>With or without access to sensitive data</li><li>With how much more allocatable memory (a snapshot is said to allocate 100% more memory)</li><li>Avoiding rescheduling of workload in your clusters</li></ul><p>Capture information about memory</p><ul><li>Get heap snapshots (from the DevTools, from the REPL then copy, with a signal then copy)</li><li>Query objects by constructor</li><li>Get allocation profiles</li><li>Get a memory timeline</li></ul><p>Choose the analysis conditions</p><ul><li>Live, with references</li><li>With files</li><li>With stability constraints</li></ul><p>Do the analysis</p><ul><li>Explore snapshot summary</li><li>Navigate to and from the retaining tree</li><li>Do smart comparisons with the 3 snapshot technique</li></ul><p>Understand the memory leak at hand</p><ul><li>Own global references</li><li>Unexpected long running processes</li><li>Native global references</li><li>Native layer that never gives control back</li><li>Closure scope</li></ul><p>Test your assumptions</p><ul><li>Add weight</li><li>Free suspicious references</li><li>Break unresponsive flows</li></ul><p>Fix the memory leak</p><ul><li>This completely depends on the leak at hand</li><li>Sometimes you can’t</li></ul><h3>Step by step</h3><h4>Confirm you have a memory leak</h4><p>If you are not already equipped with an observability tool, consider doing it.</p><ul><li>Open source solution among many, all-in-one or to combine: <a href="https://www.elastic.co/observability">Elastic Observability</a>, <a href="https://prometheus.io/">Prometheus</a> and <a href="https://prometheus.io/docs/alerting/latest/alertmanager/">AlertManager</a>, <a href="https://zipkin.io/">Zipkin</a>, <a href="https://www.jaegertracing.io/">Jaeger</a></li><li>Paid solutions among many: <a href="https://www.datadoghq.com/">DataDog</a>, <a href="https://newrelic.com/">NewRelic</a>, <a href="https://www.dynatrace.com/">Dynatrace</a></li><li>Some others are specific to a technical stack, like the monitors of <a href="https://pm2.keymetrics.io/">PM2</a></li></ul><p>Without any, you may just have to trust the few log files and your gut.</p><p>If you got one</p><ul><li>Initially confirm that your logs contain the Out Of Memory (OOM) error before crashing</li><li>Increase the available memory size if you can easily do so (anyway, to go deeper in the investigation, you are likely to need twice the baseline in terms of memory)</li><li>Confirm again that you get the OOM error before crashing, to eliminate the case where you just didn’t have enough memory available to handle basic load</li><li>If you were not able to increase the available memory significantly, and your application survives a full time period of load/traffic (e.g. a day of traffic that goes down every night), confirm that over time, the minimum heap size becomes greater and greater, meaning something is accumulating, slowly but surely</li><li>If your application cannot survive a full period, simulate it by stopping traffic for a while and seeing if the heap size reaches its minimum level</li></ul><p>So here you are. You have OOMs, crashes, and the pattern of a memory leak.</p><h4>Open communication channels and enable the inspector</h4><p>Talking to your application so that it tells you, in the same language as your code speaks (your objects and their constructors), involves being able to talk to its <a href="https://nodejs.org/api/inspector.html">inspector</a> using the <a href="https://chromedevtools.github.io/devtools-protocol/">DevTools protocol</a>.</p><p>The internal NodeJS inspector first needs to be actively listening on a port (defaults to 9229), except if you only intend to send the <a href="https://nodejs.org/api/cli.html#--heapsnapshot-signalsignal">pre-configured heapsnapshot signal</a>.</p><ul><li>Pre-enable the inspector and customize the port with the <a href="https://nodejs.org/api/cli.html#--inspecthostport">inspect option</a> (you can be tempted to set it via the <a href="https://nodejs.org/api/cli.html#node_optionsoptions">NODE_OPTIONS environment variable</a>)</li><li>Customize the port with the <a href="https://nodejs.org/api/cli.html#--inspect-porthostport">inspect-port option</a>, and enable it later sending the SIGUSR1 signal to the process (kill -USR1 &lt;process id&gt;)</li></ul><p>Then, depending on the client you use to talk to the inspector, you may need to expose this port to the outside and protect it from unauthorized traffic by configuring your proxies accordingly.</p><ul><li>Using the node binary as a client with node inspect -p &lt;process id&gt; , you don’t need to expose the port, but need to execute commands where the process lives.</li><li>To use the Chrome DevTools Node App (devtools://devtools/bundled/node_app.html), you’ll need to expose the port the inspector is listening on, and it’s on you to find the way to do so with your infrastructure.<br>If you have a hard time finding the application from the DevTools, directly access the /json endpoint of the exposed inspector to get the devtools frontend url (e.g. by default json endpoint is <a href="http://localhost:9229/json">http://localhost:9229/json</a>).<br>(Watch out, old versions of Node display endpoints with a “chrome-devtools:” protocol instead of “devtools:” protocol.)</li></ul><h4>Choose the application conditions</h4><p>For the items below, it may be more about a constraint than a real choice.</p><p><strong>Recent or unstable NodeJS version</strong></p><p>Note that the inspector is very unstable on old versions of Node, and you are likely to crash the instance inspecting it. This may help you choose for the next point.</p><p><strong>In quarantine or with traffic, or a mix of the two</strong></p><p>You may put the application in quarantine and let other instances handle the load. Especially if you are not confident the application will not crash. This way, you will have to switch it on and off to study memory leaks related to traffic.</p><p><strong>Short period or full period</strong></p><p>Also depending on how fast the leak crashes down your application, you may have the luxury to have confirmed you are really investigating a memory leak. Moreover, a very short period may make the things harder, not giving you much time to switch traffic and capture heap snapshots.</p><p><strong>Atomic transactions, compensated later, or just don’t care</strong></p><p>If you are likely to crash the application while traffic is enabled, the last thing you want it to create integrity issues in your data and transactions. So if you care, you have to know if you can rely on atomic transactions, or will have to manually compensate for the interrupted operations.</p><p><strong>Early or late in the leak progress</strong></p><p>Investigate early and the leak may be hardly visible. Investigate too late and you won’t be able to investigate because of instabilities while recording the heap snapshots (that require 100% more available memory).</p><p><strong>With or without access to sensitive data</strong></p><p>You may need to get clearance for seeing the data you’re going to have access to. To be quite explicit: you may see user inputs including clear passwords when investigating heap snapshots containing request objects for login endpoints.</p><p><strong>With how much more allocatable memory</strong></p><p>As you already understood, a snapshot is said to allocate 100% more memory, and having less than that will prevent you from taking heap snapshots, and only query objects by constructor.</p><p><strong>Avoiding rescheduling of workload in your clusters</strong></p><p>Be also aware of your infrastructure application containers rescheduling strategy, which may imply chaotic rescheduling of applications, shutting them down in one place and starting them in another, which can greatly disturb your traffic.</p><p><strong>With code or operation</strong></p><p>You may be required to have the whole intervention reviewed as code and deployed. You may even want to automate this investigation. For that sake, consider using <a href="https://github.com/cyrus-and/chrome-remote-interface/">chrome-remote-interface</a> or other clients listed on <a href="https://github.com/ChromeDevTools/awesome-chrome-devtools">awesome-chrome-devtools</a>.</p><h4>Capture</h4><p><strong>Take heap snapshots from the DevTools</strong></p><p>From the Memory panel of your DevTools, the button is called “Take snapshot”.</p><p>Wait, here you also get a way to see the heap size evolve. The Memory panel also shows the live heap size of all the known NodeJS VM instances. And this is very cheap for the application.</p><p><strong>Take heap snapshots with the node binary</strong></p><p>With the node binary, where the application process lives, run node inspect -p &lt;process id&gt; or node inspect localhost:9229 if 9229 is the port the inspector is listening. Then type help to get a reminder of the possible commands (useless here but the .help command also exists to see additional commands related to the command line in use). Then type the takeHeapSnapshot(&#39;somefilepath.heapsnapshot&#39;) to take and save a heapsnapshot. The extension is important, otherwise no DevTools will be able to open it as heap snapshot.</p><p><strong>Take heap snapshots with a signal</strong></p><p>Like said earlier, you may use the <a href="https://nodejs.org/api/cli.html#--heapsnapshot-signalsignal">pre-configured heapsnapshot signal</a>.</p><p><strong>Query objects by constructor</strong></p><p>(Only available in the DevTools)</p><p>If you’re not lucky enough to be able to get heap snapshots, you may be lucky enough to already have hints about what’s leaking.</p><p>Then, get a reference to the suspected constructor, and use the built-in queryObjects function (e.g. queryObjects(MyConstructor)).</p><p><strong>Get allocation profiles</strong></p><p>Currently called “Allocation sampling”, this records where volumes of allocations happen, not what’s allocated. This is much lighter for the application. You don’t need twice the size. It’s just much less efficient in telling you if the allocation was legit or not, since you won’t be able to compare the allocated memory over time, and determine what’s still there when it should have been deallocated.</p><p><strong>Get a memory timeline</strong></p><p>More expensive than the 2 others, and very prone to instabilities that you can’t afford, this incremental capture of the heap, is eventually a very good replacement to the 3 snapshot technique, again, if you can afford it.</p><p><strong>Transport the files</strong></p><p>Use the copy instructions you can to move the files from the the process lives to where you’ll study it. It might be in a protected folder that is fine regarding your company compliance policies.</p><h4>Choose the analysis conditions</h4><p><strong>Live, with references</strong></p><p>Study the snapshots in the DevTools directly after having captured them.</p><p>The function contexts shown in retaining trees (that we did not talk about yet), will let you go to the definition of the functions, in the files loaded by your application.</p><p>On top of that, any non internal instance you click on will update the $0 to $4 references that you’ll be able to use in the console. Finally, a right click on an instance will let you store it as a global variable.</p><p><strong>With files</strong></p><p>Study the snapshot that you’ve saved for later, or a colleague provided you with. You won’t get the references and the links to sources.</p><p>To load a *.heapsnapshot file, it’s very simple: open the same Memory panel in the DevTools and click the Load button.</p><p><strong>With stability constraints</strong></p><p>These are not new</p><ul><li>Instable application may have forced you to switch traffic off for a while</li><li>The leak may be fast and you have to hurry capturing the heap snapshots</li></ul><h4>Do the analysis</h4><p>Now that you know how to get the material, let’s dive in.</p><p><strong>Explore snapshot summary</strong></p><p>Having a single heap snapshot available, you’ll have to navigate back and forth between the Summary view and the retaining tree of the instances you’ll have clicked on. The Containment view is more for when you already know where the leaking retained objects are.</p><p><strong>Determine past allocations that should be dead by now</strong></p><p>If you could afford recording the memory timeline over the period necessary and observe and analyze the leak, then go for it.</p><p>For all the others, the 3 snapshot technique is still very valid!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZRFJL4kBn7Cp4f6vZKQeOA.png" /><figcaption>White cells mean collectable by the garbage collector. Looking at snapshot 3 for objects allocated between snapshot 1 and 2, we spot that B has survived GC even after having assigned any resource in pools/caches to other tasks.</figcaption></figure><p>The preliminary step of warm up is mandatory. Otherwise, you could start suspecting objects that have been allocated for a good reason, and are still there by now, for the same good reason.</p><p>Performing the same potentially leaking tasks between the first and second snapshots is mandatory to actually have the tasks cause the allocations.</p><p>Performing the same tasks between the second and third snapshots is mandatory to maximize the chances that sized pools/caches have been renewed.</p><p>Finally, looking at snapshot 3 for objects allocated between snapshot 1 and 2, we spot that B has survived GC even after having assigned all resource in pools/caches to other tasks.</p><h4>Understand the memory leak</h4><p>Exploring the summary, and doing the comparison between the snapshots, you have the best material to understand what’s the problem. Let’s review some examples.</p><p><strong>Own global references</strong></p><p>All the NodeJS leaks end up being held by global references. By “own” global references, I mean the references that are explicitly retained as references in collections, that you feed but never release.</p><p>You are going to find them from the Summary view, and the retaining tree won’t be very deep, and you won’t have to go through mystical references.</p><p><strong>Unexpected long running processes</strong></p><p>You cannot qualify as a memory leak some memory that is retained by a task that you know is being executed. It’s a memory leak if you lost control over this task.</p><p>For instance, a web API can, for some reason, have a handler never reply and hold the instances and payload for ever, and continue doing nested requests while the client has timed out a long time ago. This is worse if you have an observability instrumentation that is creating spans and waiting for the end of the task to send them to the traces collector.</p><p>You can identify this case by finding huge amounts of references in the Summary view, that are retained, indirectly, by the context instances of your tasks. E.g. instances of tracing spans retained indirectly by the Request class of your favorite web server framework.</p><p>You can also get hints that this is happening, by observing that the leak contains a lot of promises, laid out as a very long chain in the retaining tree, or laid out as forks of very high cardinality, revealing never ending async processes, purely sequential or branching out.</p><p><strong>Native global references</strong></p><p>You may also be victim of some very specific references kept alive by native global references. It happened on NodeJS around version 9, that an internal pool of max 1000 HTTP related objects, never reaped out of the pool, was so that the tip of the pool, could stay untouched for a very long time, and keep a reference to objects related to the requests that were used to initiate them. More precisely, the <a href="https://nodejs.org/api/domain.html">Domain</a> was retained, and the web framework in use was using these domains as keys in <a href="https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Global_Objects/WeakMap">WeekMap</a>s, relying on the fact that nothing would keep a reference to these domains.</p><p><strong>Native layer that never gives control back</strong></p><p>Some of the clients you use to talk to caches or message brokers or other types of servers, may come with a native implementation that is meant to always give control back after e.g. having read a value from the cache.</p><p>But this may just be broken, and the callback that the JS code gives to the native layer is never called. The Promise that should resolve when this callback is called never resolves. Your code awaits for ever.</p><p>That has been the case with a memcached client few years ago. In some situations where the value was not existing in the cache, the client was never responding. The request made by the user application to the web server had timed out, but behind the scene, the query handler was waiting for ever, and retaining its full context.</p><p><strong>Closure scope</strong></p><p>There is a special case of leak to consider, where 2 functions are declared in the same scope. The 2 functions share the same closure scope. It may hide the fact that a function you study is retaining much more than what needs. Then, there are so many ways this undesired retained value also retains things of the past that. The leak happens when this retained value, in turn, retains a similar function.</p><p>This is typically the case of code that iteratively resets an object holding functions, having one of these retaining the previous object version in its closure scope.</p><p>You can detect that in the heap snapshot by noticing long chains in the retaining tree, which alternate between the versions of this object and function contexts.</p><h4>Test your assumptions</h4><p><strong>Free suspicious references</strong></p><p>If it’s a problem of own global references, you can make your point by freeing the suspicious references. Note that this is quite dangerous and your instance should not be handling traffic at this moment.</p><p><strong>Add weight</strong></p><p>If the leak is growing very slowly and you are suspecting specific objects. You may just attach additional weight to them to have this leak be more visible and study how heap size increases and decreases with this change.</p><p>If adding weight, the heap size over a full period does not increase, it means that you were wrong.</p><p><strong>Break unresponsive flows</strong></p><p>If you are facing native layers not giving control back, you should try wrapping this call with timeout behavior, for instance using Promise.race to make it race with a <a href="http://bluebirdjs.com/docs/api/promise.delay.html">delayed promise</a>.</p><p>If doing so, the leak decreases in size, it means that you were right about it. But it won’t disappear completely without submitting a change request to the great open source client you are using.</p><h4>Fix the memory leak(s)</h4><p>This completely depends on the leak at hand. If this is your code, fix it. Otherwise, contribute or find a workaround.</p><p>You may also have multiple memory leaks at once!</p><h3>Conclusion</h3><p>This article is not explaining everything. The goal was not to write a documentation. The goal was make you be more confident that it’s possible to investigate memory leaks on NodeJS applications, from your temporary dev to long-running instable production environments.</p><h3>Resources</h3><p>On top of the resources listed along the way, I cannot end this without linking an old but still very relevant presentation of memory management and analysis by Addy Osmani. Here it is:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FLaxbdIyBkL0%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DLaxbdIyBkL0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FLaxbdIyBkL0%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/bf02d02ea547bcababfac5a2e4434a40/href">https://medium.com/media/bf02d02ea547bcababfac5a2e4434a40/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e96af5f0f277" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Enterprise Architecture practices are helping you scale]]></title>
            <link>https://medium.com/@atondelier/enterprise-architecture-practices-are-helping-you-scale-715eed43a30f?source=rss-7f087a191308------2</link>
            <guid isPermaLink="false">https://medium.com/p/715eed43a30f</guid>
            <category><![CDATA[enterprise-architecture]]></category>
            <category><![CDATA[scale-up-leadership]]></category>
            <category><![CDATA[engineering-management]]></category>
            <category><![CDATA[knowledge-management]]></category>
            <dc:creator><![CDATA[Alexis T.]]></dc:creator>
            <pubDate>Sun, 09 Jul 2023 10:11:26 GMT</pubDate>
            <atom:updated>2023-07-10T08:02:35.912Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IcIRyABZr0wE1zeg" /><figcaption>Photo by Hudson Hintze on Unsplash</figcaption></figure><p>An enterprise is an implementation of an abstract system, with problems that so many already faced. My goal is to help you anticipate the patterns.</p><h3>Early stage</h3><p>It’s common for start-ups to be based on</p><ul><li>very fast-paced developments</li><li>achieved by a few highly skilled and knowledgeable people.</li></ul><p>Often not profitable, they seek funds in exchange for great promises. Celebrations have finished. Things have to go fast again, but for higher scale: more users, more features, and more integrations. And more contributors!</p><h3>Scale-up</h3><p>From there, many paths can be explored. One is to invoke agility and only take its softness part regarding change. This path discourages efforts to structure knowledge and work because of the potential to evolve quickly and the belief that it makes any persisted knowledge instantly obsolete.</p><h4>The many sides of scaling up</h4><p>Scaling up is not a one-sided process. Sides are</p><ul><li>your business strategy</li><li>the systems you’ve built</li><li>your way of working</li><li>and the tools and technologies you are using.</li></ul><p>Individually, some are more or less easy to change. Globally, they are all inter dependent.</p><p>One stretching the others without giving time or methods to adapt is likely to make the whole thing break or slow down a lot.</p><p>Often, the change driver is the business strategy that may stretch the others in the following ways:</p><ul><li>Systems that looked straightforward to understand, and were performant enough, begin stacking dirty adaptations to enable the change of strategy very quickly, for the sake of time to market, planning for a rewrite that never happens.</li><li>Ways of working move to temporary ad-hoc task forces that skip steps in the process, tire people out, and don’t persist any knowledge.</li><li>Tools and technologies are not enough for the task at hand anymore. New ones are used without coordination: no time for that.</li></ul><h4>Hiring to scale</h4><p>To help with these changes, you hire more people. They are unaware of the past. Elders knew everything. New joiners know a subset. Often selected for their greater seniority in the field, pressure eventually prevents them from implementing methods to scale that they learned from other companies. Or if they do, they do it heterogeneously.</p><p>On many sides, entropy increases with hirings. This does not break after a few of them. It weakens.</p><h4>Prepare for amnesia, anticipate the inertia</h4><p>After a while, knowledge of facts stays in the brains of the people who built the things, knowledge of the decisions stays in the brains of the ones who took them. No global maps, no consistent principles. Each team works differently. Only the high-level business strategy documents and the reporting they request from they direct reports show some great effort, for slide decks no one will open again.</p><p>Nobody knows how the whole thing is really working. Efficiency decreases. Each silo fights for its budget and thinks the others are not doing their job. Redundancies appear. Projects takes more and more time after a lot of back and forths.</p><p>And if some structure and knowledge persistence were actually in place, reorganisations motivated by the low efficiency of the current one give no time to migrate the knowledge architecture. Previous knowledge, scoped per team, is put in a big “Archives” folder.</p><p>If you did not have much time to maintain a knowledge base that had a coverage basis, then you don’t have the time it takes for a migration or starting from scratch.</p><p>If the knowledge structure that was in place was already hardly supporting all what you wanted it to hold, in ways only you knew about, then it’s not going to support the increases in size, complexity, contributions and scope shifts.</p><p>Moreover, reorganisations at those times in the evolution of a company tend to favour business impact and ignore long-running ownership. Ownership helps to compensate for not persisting knowledge.</p><p>It’s very important to notice that this process is inertial. Because the human brains absorb the shocks, and adapt everyday to have their job done, the consequences can be observed very late in the process.</p><h4>Late reactions</h4><p>After multiple reorganisations, voices raise to complain about the decision-making processes. Decision committees are born. But wait, the goal is not the decisions themselves, the goal is all about alignment. Fear the ivory tower effect by actively supporting effective collaboration. Be an example.</p><p>The struggle of all new joiners to understand the business, the company, the systems, is heard and high level maps are created.</p><h4>Regrets?</h4><p>One step after the other, the company starts to apply practices from a world that had been overlooked when considering only the softness part of agility.</p><p>The architecture of an enterprise often uses the same abstract mechanics as many others without knowing it.</p><p>No one can tell that the company would have survived if it had invested effort in that direction earlier.</p><p>We can essentially tell that being aware of these mechanics helps make same-cost decisions that scale with size, time, and strategy changes.</p><h4>To leaders</h4><p>As soon as you can afford, play the long game. Your company needs you, leaders, to be conscious of the impacts of the strategy shifts you operate.</p><p>Being conscious is the good start required to dig now into what successful companies have been doing.</p><h3>Abstract mechanics you may tailor to your company</h3><p>The first part of the article was only an incentive to dig into the content that I initially wanted to share with you.</p><p>I’ve experienced this first part myself. At the stage of late reactions, I wanted to know more about how others had done it before.</p><p>Many contents failed at explaining the motivations and traps.</p><p>Two authors and their book helped me see through</p><ul><li><a href="https://www.goodreads.com/book/show/40735348-the-practice-of-enterprise-architecture">The Practice of Enterprise Architecture: A Modern Approach to Business and IT Alignment</a>, by Svyatoslav Kotusev<br>He has studied the practice of enterprise architecture in a meaningful set of companies and synthetized the abstractions in terms of artifacts to persist facts and decisions, that happened to be successful practices, weighted them by how frequently they were used, grouped them in 6 buckets that inspired the CSVLOD model. He also extracted the work processes that were based on these. The maintains the website <a href="http://eaonapage.com/">eaonapage.com</a> from which you can retrieve the summary view of the CSVLOD model.<br>With his book, Svyatoslav convinced me that there is a basis you can tailor to your needs, with a sense of priority in the way you implement these abstract practices that survive scaling.</li><li><a href="https://www.goodreads.com/book/show/25812037-chess-and-the-art-of-enterprise-architecture">Chess and the Art of Enterprise Architecture</a>, by Gerben Wierda<br>He convinced me that this is not to be sold as a silver bullet. The devil always hides in the details.</li></ul><p>I encourage you to take it very seriously.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=715eed43a30f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Back to WebGL with the Mandelbrot Set]]></title>
            <link>https://medium.com/@atondelier/back-to-webgl-with-the-mandelbrot-set-2840c865113e?source=rss-7f087a191308------2</link>
            <guid isPermaLink="false">https://medium.com/p/2840c865113e</guid>
            <category><![CDATA[observablehq]]></category>
            <category><![CDATA[computer-graphics]]></category>
            <category><![CDATA[webgl]]></category>
            <category><![CDATA[glsl]]></category>
            <category><![CDATA[mandelbrot]]></category>
            <dc:creator><![CDATA[Alexis T.]]></dc:creator>
            <pubDate>Thu, 29 Jun 2023 22:37:09 GMT</pubDate>
            <atom:updated>2023-06-29T22:43:07.560Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s be old school with some <a href="https://en.wikipedia.org/wiki/WebGL">WebGL</a>.</p><p>Even more old school talking about the <a href="https://en.wikipedia.org/wiki/Mandelbrot_set">Mandelbrot Set</a>.</p><p>You may spare this reading and jump to the <a href="https://observablehq.com/d/c389a6e4b0517ec7">Demo on ObservableHQ</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*_7zTaLtq6RbHrb8RLgq4lA.png" /><figcaption>The Mandebrot Set is visualized as the black areas. The colored surrounding areas are a function of the amount of iterations before reaching a point of no return (diverging for sure).</figcaption></figure><h3>What’s WebGL</h3><p>In short but not so short</p><p>Graphics Language for the Web</p><ul><li>to feed GPU memory</li><li>upload programs to the GPU</li><li>and send draw instructions to the GPU</li></ul><p>Implemented by modern browsers</p><ul><li>no plugins to install</li><li>augmented with extensions (<a href="https://webgl2fundamentals.org/webgl/lessons/webgl1-to-webgl2.html">WebGL 2 = greater set of extensions than WebGL 1</a>)</li></ul><p>Ready for 2D and 3D graphics</p><ul><li>shader programs have all the basic math primitives and functions empowering scalar, 2D and 3D related transforms</li><li>the program feeds a vertex shader with uniforms (single value) and per vertex attributes</li><li>vertex shaders take the uniforms and attributes as inputs and let you locate the drawn elements vertices on the 2D screen, and output values to each vertex</li><li>the program interpolates each vertex shader output values for each fragment of the rendered canvas</li><li>fragment shaders take the interpolated values as input and let you paint each fragment</li></ul><p>And very very very efficient for massively parallel computing compared to your CPU.</p><h3>The Mandelbrot Set</h3><p>In short, it the set of complex numbers <em>c,</em> for which the sequence of complex numbers <em>z </em>defined below does not stay bounded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*6m6ttygKOWLJmh55QyazSg.png" /></figure><h4>Complex numbers</h4><p>A number made of a real and imaginary part, often represented in 2D.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*hkHGhswyv0kPHYx9InAnTA.png" /></figure><p>In the 2D representation, the multiplication by <em>i</em> (1 unit in the imaginary dimension — vertical) is all about rotating by 90 degrees CCW around the center of the landmark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yE86dycYudG96EailNK15A.png" /></figure><p>And to get a little bit closer the the Mandelbrot Set sequence, <em>z</em> squared doubles the angle and squares the length of the vector from the center of the landmark.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JbCdyJ2BA_4DjBr9G-frjA.png" /></figure><h4>Back to the Mandelbrot Set</h4><p>This last example above only lets you guess that some starting <em>c</em> values will make the sequence diverge for sure. This is actually concluded mathematically as soon as <em>|z|</em> (<em>z</em> distance from center) is greater than 2.</p><p>You also understand that the whole set of iterations is running per value of <em>c</em>, which corresponds to one position on the 2D view. If we were to represent it on a canvas, it would meaning computing this sequence independently, pixel by pixel. So parallelizable.</p><h3>A Mandelbrot Set with WebGL</h3><p>Here, this is not much about painting the fragments of many elements on the canvas, this is about painting each of the fragments of a big rectangle that takes the whole canvas.</p><h4>The frame</h4><p>So we’ll just start with vertices coordinates that match the limits of the drawn canvas ([-1, 1] * [-1, 1])</p><pre>const vertices = [<br>  -1,1,0.0, // top left<br>  -1,-1,0.0, // bottom left<br>  1,-1,0.0, // bottom right<br>  1,1,1, // top right<br>];</pre><p>and have the vertex shader be the identity shader.</p><pre>attribute vec3 coordinates;<br><br>void main(void) {<br>  gl_Position = vec4(coordinates, 1.0);<br>}</pre><h4>The content</h4><p>That’s all about applying directly the definition of the Mandelbrot Set.</p><p>Here is the main part of the fragment shader. Surrounding functions, not shown here, are custom ones. <em>u_maxIterations</em> is a uniform.</p><pre>void main(void) {<br>  // mandelbrot setup<br>  vec2 c = transformFragCoordinates(gl_FragCoord.xy);<br>  vec2 z = vec2(0.0);<br>  bool unbounded = false;<br>  int iterations = 0;<br><br>  // mandelbrot loop, initial loop size has to be defined statically<br>  for (int i = 0; i &lt; 10000; i++) {<br>    // mandelbrot exit (condition that will stay true)<br>    if (unbounded || i &gt; u_maxIterations) break;<br><br>    // mandelbrot iteration<br>    z = vec2(pow(abs(z.x), 2.0) - pow(abs(z.y), 2.0), 2.0 * z.x * z.y) + c;<br>    iterations = i;<br><br>    // mandelbrot exit (condition that will never been reached again)<br>    if (length(z) &gt; 2.0) {<br>      unbounded = true;<br>      break;<br>    }<br>  }<br><br>  // frament color<br>  gl_FragColor = vec4(computeColor(unbounded, iterations, z), 1.0);<br>}</pre><h3>Demo</h3><p>Again, demo is here: <a href="https://observablehq.com/d/c389a6e4b0517ec7">Demo on ObservableHQ</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/956/1*AsU20N3vNA_BXVgY3AFINQ.png" /><figcaption>Another screenshot zooming west on the Mandelbrot Set.</figcaption></figure><h3>Conclusion</h3><p>A conclusion? Don’t have your CPU draw pixels one by one when they are all independent. But have your GPU massively parallelize the work by uploading shader programs and basic data to it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2840c865113e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Keep learning as a Software Engineer]]></title>
            <link>https://medium.com/@atondelier/keep-learning-as-a-software-engineer-211fef86340e?source=rss-7f087a191308------2</link>
            <guid isPermaLink="false">https://medium.com/p/211fef86340e</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[system-design-interview]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Alexis T.]]></dc:creator>
            <pubDate>Thu, 01 Jun 2023 06:55:12 GMT</pubDate>
            <atom:updated>2023-06-01T06:55:12.135Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nq3LWuk5qK0C3Qab" /><figcaption>Photo by <a href="https://unsplash.com/@tateisimikito?utm_source=medium&amp;utm_medium=referral">Jukan Tateisi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>At multiple stages of your career, you might think <strong>you just got stuck</strong>. You’ve heard of these <strong>engineers with</strong> <strong>good pay</strong>, working on the <strong>good old technology</strong> <strong>they’ve always been working with</strong>. You say you won’t become one. You really mean it.</p><p>You get <strong>years of experience</strong>. You want something <strong>new</strong>. That’s true: learning another language can be done on the job. But what about the <strong>fundamentals of another technical field</strong>? Don’t believe the ones saying it’s only about mapping your current knowledge to another field.</p><p>You hear about <strong>Machine Learning engineering</strong>. And you understand that: our job, <strong>as Software Engineers, over the next decades, will be, for a lot of us, about moving towards this field</strong>.</p><p>Deciding to move on is not an easy step.</p><p>Initiating this move essentially implies</p><ul><li>awareness of the <strong>landscape</strong></li><li>awareness of the <strong>effort</strong></li></ul><p>That’s what we are going to talk about.</p><h3>Awareness of the landscape</h3><p>Be ready to accept that until now, you’ve only been aware of only a small portion of what exists. And it will still be the case, just a little bit less.</p><h4><strong>Cultivate knowledge depth and breadth</strong></h4><p>Knowledge <strong>depth</strong> and <strong>breadth</strong> are <strong>complementary</strong>. One can be very successful with specific knowledge matching the work at hand at a company. Another can be aware of the better alternatives but unable to dive in.</p><p>And nobody says both always have to happen in the same single human brain. Teams exist for that.</p><p>When learning, you need bit of both. When moving, interviewers expect that.</p><h4>Discover the landscape</h4><p>As always, it ends up being a matter of (un)known (un)knowns</p><ul><li><strong>Known knowns. </strong>The company you work with focuses on your ability to evolve the current state of things. Not much room for offtrack work.</li><li><strong>Known unknowns. </strong>Expeditions to dive into the unknown is limited to options assessment for the milestones to come.</li><li><strong>Unknown unknowns. </strong>Foreseeing these options often relies on outsiders bringing their experience. Based on luck.</li></ul><p>Discovering what you didn’t know you don’t know is about maximizing the connections with the experience of others. Ahead of time. Ahead of the time you actually have to rush options assessment.</p><p>How can you connect with the experience of others?</p><ul><li><strong>Talking with people.</strong> Have a community at your current company. Bring topics to the table. Go to Meetups. Talk to other people in related fields.</li><li><strong>Reading/listening to their contents.</strong> Alternate wide bases, with consistent structure (main branches of the tree), and quick to read articles (small branches). Consider listening to audio books. Consider video trainings too.</li><li><strong>Experimenting with their cases.</strong> Practice with concrete cases, close to what you could find within your current company (so that you fully understand the functional scope). Yes: the shape of others cases, applied to your known functional scope.</li></ul><p><em>The following resource is, to me, a very good example of a main branch I’ll keep as a reference for the rest of my career.</em></p><p><a href="https://www.goodreads.com/book/show/23463279-designing-data-intensive-applications">Designing Data-Intensive Applications</a></p><h4>Settle in one place at a time</h4><p>Once you start exploring, you get that impression that <strong>the landscape is infinite</strong>. And that’s <strong>frightening</strong>!</p><p>Focus on a <strong>scope</strong>, <strong>index the rest</strong> for later.</p><p><strong>Refrain from giving up </strong>because<strong> </strong>of<strong> how far the objective seems to be</strong>. You are progressing, it just pays by<strong> increments.</strong></p><p><strong>Refrain from giving up </strong>because<strong> </strong>of<strong> </strong>the<strong> effort </strong>it requires.</p><p>Talking about effort.</p><h3>Awareness of the effort</h3><p>Be ready to invest effort. Remember at school. You may have been thinking that you were working all day long for no income (which was not true by the way, your gain was just not about money).</p><p>Well, your teachers were actually forcing you into doing what follows.</p><h4>Allocate time</h4><p>There is no way you can prepare in 1 day. Think in <strong>months</strong>, if not a <strong>full year</strong>. Begin <strong>even if you are not planning to leave your company</strong>.</p><p><em>These 2 resources convinced me about that point, before noticing it by myself.</em></p><ul><li><a href="https://www.youtube.com/c/EngineeringwithUtsav">Engineering with Utsav</a></li><li><a href="https://www.goodreads.com/book/show/55014663-cracking-the-coding-interview?ac=1&amp;from_search=true&amp;qid=rJQcwVUzNZ&amp;rank=2">Cracking the Coding Interview: 189 Programming Question...</a></li></ul><h4>Aggregate scattered knowledge pieces</h4><p><strong>Reformulate </strong>and use<strong> mind maps.</strong></p><p><strong>Refrain from noting everything, </strong>note what you<strong> understand </strong>or<strong> want to understand, </strong>prefer doing<strong> multiple passes.</strong></p><p><strong>Refrain</strong> from writing down your notes <strong>instantly</strong>. Make a <strong>pause</strong>, explain the concept <strong>out loud</strong>. And only then, <strong>write it down</strong>. This has much more benefit than deciding to write notes by hand, with a pen. You know, a pen. This is useful only to keep your hand used to writing with one, except if you’re a doctor.</p><p>Full books consistency can help: the <strong>consistent vocabulary</strong>, sometimes <strong>book-wide frameworks</strong>, can spare you the effort of harmonizing / denormalizing the multiple pieces of content, which often requires expert hindsight.</p><h4>Budget your time, plan based on aggregates</h4><p>You can’t have a full plan ahead of time. You can only <strong>budget time first</strong>, then, step by step, <strong>sketch the aggregate</strong> of what you want to understand and dive in.</p><h4>Compensate for the reading pain</h4><p>One may be a fast learner, but a <strong>slow reader</strong>. Writers are very generous. Books often have more than 400 pages / 15 hours of listening at normal speed. That can be so <strong>discouraging</strong>.</p><p>So, learn techniques to <strong>read faster while improving the understanding</strong>. Reading faster, till a reasonable speed, actually improves the understanding. Then <strong>decrease the speed depending on the complexity of what you’re reading</strong>, instead of being locked to low speed. Read out loud only if you also want to improve your pronunciation.</p><p>(When reading, you’re making the book speak to you. Having your brain switch to other thoughts while reading slowly, is the same as dropping attention to a slow speaker.)</p><p><em>This resource resonated in me when it came to improving the ability to benefit from the experience and knowledge of others just by removing the pain of reading hundreds of pages.</em></p><p><a href="https://www.goodreads.com/book/show/49994260-limitless">Limitless: Upgrade Your Brain, Learn Anything Faster, a...</a></p><h4>Spare some money</h4><p>The place is full of free online resources. But not about everything.</p><p>When it comes to books, they often cost more than 50 bucks. Prefer buying second hand when available.</p><h4>Accept complex setups</h4><p>Many technical books first chapters are about setup. Choose one of option applicable to you, and <strong>do the setup</strong>. Use the <strong>free tiers</strong> and <strong>trials</strong>. Sometimes <strong>pay for it</strong>.</p><p>Soon, a specific use case will trigger you, and you’ll appreciate being one step less away from experimenting, or from sharing with others.</p><h4>Be ready to get lost</h4><p>Entering a new field can be <strong>very hard</strong>.</p><p>Some resources have the following problems</p><ul><li><strong>Too shallow and inconsistent. </strong>They approach a topic at a very shallow level, sometimes inconsistently with the previous one you’ve just read.</li><li><strong>Too specific. </strong>They approach a topic via some details, for which you miss so many parts to get a reusable understanding.</li></ul><p>You have to get comfortable with <strong>not understanding everything</strong>, and <strong>connecting the dots</strong> along the way.</p><h4>Be ready to forget and relearn</h4><p>It may happen you thought you had understood something, even of your current field of expertise. Be ready to break that down. Be humble about your knowledge. Show confidence that you can build upon it during interviews.</p><h4>Prepare for interviews</h4><p><strong>Learning a new field</strong> is likely to <strong>trigger some will to find a new job</strong>. So, if it’s part of your plans, <strong>be prepared</strong>.</p><p>Conversely, preparing an interview for the job you want to <strong>apply</strong> to, may strongly <strong>motivate</strong> you to deep dive!</p><p>If only you have planned the <strong>time</strong> for it.</p><p>Interviewers are people from that field, they are used to interviewing people of that same field. You are a contender.</p><p>You’ll have to deal with</p><ul><li><strong>Selling your previous successes. </strong>You’ve already built great things. Show that you did so, while learning the good fundamentals.</li><li><strong>Selling yourself as a learner, worth of some trust. </strong>You just got a chance to speak for how curious, motivated and humble you’ve been.</li><li><strong>The specific interview frameworks of the field.</strong> It’s more and more likely that you’ll get invited to take some coding and system design interviews. Get used to the framework, you won’t have time during the interview. And if the company does not use such a framework, you’ll make good impression with the structure and timing you bring.</li></ul><p><em>These 4 resources were essential to me to understand that I was absolutely not ready for system design interviews, and that the breadth of solutions that I knew was actually very narrow.</em></p><ul><li><a href="https://www.goodreads.com/book/show/54109255-system-design-interview-an-insider-s-guide">System Design Interview - An insider&#39;s guide</a></li><li><a href="https://www.goodreads.com/book/show/60631342-system-design-interview-an-insider-s-guide">System Design Interview - An Insider&#39;s Guide: Volume 2</a></li><li><a href="https://www.goodreads.com/book/show/120532868-machine-learning-system-design-interview">Machine Learning System Design Interview</a></li><li><a href="https://www.youtube.com/channel/UCbvDQKzAJ5GwCjTrv4FWkxg">Jordan has no life</a></li></ul><h4>Be ready to fail</h4><p>You may get <strong>clearly refused</strong> or get <strong>no offer</strong>. That’s <strong>OK</strong>. That does not mean you don’t deserve the job. You get better each time.</p><h4>Make pauses and resume</h4><p>Don’t get <strong>burned out</strong>. Avoid reaching the point where it’s too hard. Pause so that <strong>you’ll want to resume</strong>.</p><p>Feeling like making a pause? You planned a full year. You still have a job. Go for it.</p><h4>Share with others</h4><p>Sharing about your new knowledge is a very good way to assess it. It helps convincing others to do the same, and create stimulation.</p><p>I can even be a way to change your day-to-day in your current company.</p><p>If you are a leader in your company, it’s one of the ingredient of transformational leadership: intellectual stimulation. And if you get positive feedback, be sure it’ll energize you.</p><h4>Stay healthy</h4><p>Keep your brain oxygenated, drink water, vary your food, sleep well.</p><p>Keep time for enjoying great time with friends and family, staying aware of what’s happening in the world and close to you.</p><h3>Conclusion</h3><p>This is a Medium article, this was meant to be short. You just got my 2 cents on learning new parts of the very wide field of software engineering.</p><p>There is so much to explore, and no clear and easy path. Time to start discovering yours.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=211fef86340e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>