<?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 Mario Mesaglio on Medium]]></title>
        <description><![CDATA[Stories by Mario Mesaglio on Medium]]></description>
        <link>https://medium.com/@mariomesaglio?source=rss-6e14ec0cf032------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*G1J-2G3pUJSKAiMLLnSmmQ@2x.jpeg</url>
            <title>Stories by Mario Mesaglio on Medium</title>
            <link>https://medium.com/@mariomesaglio?source=rss-6e14ec0cf032------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 09:10:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mariomesaglio/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[Concepts in Architecture | Positive and Negative Space Design]]></title>
            <link>https://medium.com/@mariomesaglio/concepts-in-architecture-positive-and-negative-space-design-293b93e12ad3?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/293b93e12ad3</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 20:58:35 GMT</pubDate>
            <atom:updated>2026-10-28T21:01:17.643Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HRhTHEkLJnZR0dX9FISS5Q.jpeg" /><figcaption>The negative space envelops the subject and lets it shine.</figcaption></figure><p>I’ve experienced, both as an author and as an observer, the results of prescribing what is required by stating the design characteristics of the expected outcome. It might sound obvious; what better way to request something than by explaining what one expects? In general, these requests are addressed by people, and people are intrinsically non-deterministic. Considering they would have to respond to processes, deadlines, and collateral, it is fair to assume that the same requirement will yield meaningfully different outcomes at every realization.</p><p>Techniques such as defining and implementing assertions (e.g., tests) are developed at different stages of the development lifecycle to ensure alignment between the outcome and the requirement. Also, it is typical to increase the level of detail in the design, trying to catch all possible misconceptions or spaces inadvertently left open to ensure the “human in the middle” does not complete them wrongly. Such steps increase the overall volume and complexity of the original design, with diminishing returns. The return on investment is marginal.</p><p>In the past, it might have been harder to see the complications brought by solely focusing on the above-mentioned approach. In the current time of AI, though, the adverse effects are made evident faster and have a stronger impact. The same prompt to an LLM may render different results, even if all perceivable conditions remain the same. An LLM is intrinsically a stochastic system whose output may vary by the slightest discrepancy or disturbance, including external factors affecting the hardware, from sporadic computational events to, at the extreme, a cosmic ray flipping a bit.</p><p>How can one then make sure there are no such “free will” spaces left? That everything that must be has been defined and covered, and that imperative language has been used with no room for unexpected variations? It is a Sisyphean endeavor, as there is a physical and moral limit to how much one can control something beyond oneself. In particular, where humans or tools made by humans (e.g., AI) are involved, one would be resisting the positive qualities of creativity and inference.</p><p>Why would one try to bring the best talent onboard if there is no space for it to express itself? That said, it is not viable to under-specify when a distinct requirement is settled.</p><h3>Positive Space Design</h3><p>The approach described in the introduction above is focused on the main subject: the design. It defines a solution through the characteristics and expectations set by it explicitly, listing what to do and how to do it with a high level of precision and a detailed context.</p><p>Example:</p><ul><li><em>Create an API resource for the `domain-service` Customer with a URI of `/v1/customers` that belongs to the resource type of `collection-resource`. It must support pagination. It must return a configurable maximum number of items, with a default of 5. It must return a successful response even when no items are returned. It must support query filtering on the properties name and age.</em></li></ul><p>In the above example, it is evident how precise the details are, mentioning the service name, detailing exactly how the URI must be written, and even which properties should be part of the query filtering support. If there were a similar requirement for a different service and API resource, one would need to write a similar list of tailored requirements.</p><p>If the team that receives the requirement had experience in solutions like this, would their expertise be used if they had to perform the requirement as written? Of course, they can use it to provide feedback, but that would be moving the concern to the governance (i.e., process) side. A similar idea would apply to an AI Agent, where the time invested in making the agent more effective in its operation would be underutilized, reducing the added value of having it in the first place.</p><p>Using a term I first heard while reading about photography, I propose the name <strong>Positive Space Design</strong> for the technique of defining the solution by predominantly conveying its expected design characteristics.</p><h3>Negative Space Design</h3><blockquote>Roy Fielding, in CHAPTER 5 of his <a href="https://roy.gbiv.com/pubs/dissertation/fielding_dissertation.pdf">famous dissertation</a>, talks about “Starting with the Null Style”:</blockquote><blockquote><em>There are two common perspectives on the process of architectural design, whether it be for buildings or for software. The first is that a designer starts with nothing — a blank slate, whiteboard, or drawing board — and builds-up an architecture from familiar components until it satisfies the needs of the intended system. The second is that a designer starts with the system needs as a whole, without constraints, and then incrementally identifies and applies constraints to elements of the system in order to differentiate the design space and allow the forces that influence system behavior to flow naturally, in harmony with the system. Where the first emphasizes creativity and unbounded vision, the second emphasizes restraint and understanding of the system context. REST has been developed using the latter process.</em></blockquote><p>One can see how similar the former process above is to the <strong>Positive Space Design</strong>, explained earlier. Although the article makes an effort to keep concepts more abstract to increase applicability, the phrase “<em>builds-up an architecture from familiar components until it satisfies the needs of the intended system</em>” is interpreted as focusing on the active component of a design, its main subject.</p><p>Instead, Roy Fielding chose the latter approach for developing REST: one that focuses on constraining the solution space — where the solution, or outcome of the design, would be — so as to allow “<em>the forces that influence system behavior to flow naturally</em>”, which addresses the above-mentioned concern of resisting the positive qualities of creativity and inference. A strategic set of constraints at the design level supports targeted creativity at the time of realization.</p><p>Example:</p><ul><li><em>A domain-model must not be owned by more than one `domain-service`. Platform consumers must only be able to access domain-model representations through dedicated API Resources provided by their parent `domain-service`. Unique identifiers of a `domain-model` `instance-resource` must not be semantic. A `collection-resource` must not return an indefinite number of items. Foundational behavioral parameters of API resources must not require code changes.</em></li></ul><p>In the above example, the design aims to limit the space any solution made for it occupies. The first sentence encompasses the original requirement of creating a `collection-resource` without defining precisely how the URI is formed, or that only the `collection-resource` of a `domain-model` must be implemented. In turn, it drives pagination by constraining the number of items a `collection-resource` can return. It closes by further closing the space that would’ve allowed for foundational parameters to be hardcoded, thus requiring a code change and likely a redeploy.</p><p>Continuing the use of photography terminology, I propose the name <strong>Negative Space Design</strong> for the technique of designing for the space where the solution with expected design characteristics must inevitably exist.</p><p><strong>Positive Space Design</strong> focuses on the solution and dictates how its realization must be performed. In contrast, <strong>Negative Space Design</strong> focuses on the space where the solution must be and lets its realization take its course.</p><h3>Balance</h3><p>I encourage the reader to notice that either approach could be considered incomplete or inefficient if exercised in pure isolation. The <strong>Negative Space</strong> design example could be said to be incomplete as it didn’t specify, at any point, that the specific `collection-resource` of the Customer service must be implemented. The <strong>Positive Space</strong> design example would be deemed inefficient, as it overspecifies rules that could be defined agnostic to the individual implementation and therefore reused, such as the pagination configuration and defaults.</p><p>As with most things in life, it is about balance. Through the act of balancing the design between these two, one may achieve a distribution that is most suitable for the context in which the solution would be realized. The designer, through their experience and skill, owns and exercises the balance in each of their designs.</p><p>From <a href="https://www.taoistic.com/taoteching-laotzu/taoteching-11.htm">Verse 11 of Lao Tzu’s Tao Te Ching</a>:</p><blockquote><em>Thirty spokes are joined in the wheel’s hub. The hole in the middle makes it useful.</em></blockquote><blockquote><em>Mold clay into a bowl. The empty space makes it useful.</em></blockquote><blockquote><em>Cut out doors and windows for the house. The holes make it useful.</em></blockquote><blockquote><em>Therefore, the value comes from what is there, but the use comes from what is not there.</em></blockquote><p>Using the same analogy, from a Taoist perspective, the <strong>Positive Space</strong> provides value, while the <strong>Negative Space</strong> makes that value useful.</p><p>Another detail to notice is that most, but not all, <strong>Positive Space</strong> definitions are driven by time-bound requirements and are, in general, of a transient nature. They intend to change the state of things within an existing system, and assume the latter is at a specific macro state. The request “<em>Create an API resource for the `domain-service` Customer</em>” would not hit the same if there were no domain-service of Customer or if it already has a collection-resource for its domain-model.</p><p>In contrast, <strong>Negative Space</strong> definitions are not tailored around any specific requirement in time, and lack, therefore, the details that would make them bound to it. Instead, they define structural limitations that every instance would need to comply with, such as “<em>Unique identifiers of a `domain-model` `instance-resource` must not be semantic</em>”.</p><p>One can then state that, in most cases, <strong>Negative Space</strong> <strong>Design</strong> addresses cross-cutting concerns, such as reference and platform architectures or technical playbooks, while <strong>Positive Space</strong> <strong>Design</strong> focuses on point requirements such as solution and technical architectures. Alas, there are colorful greys: some platform architectures need to name and direct the designs using an active voice, thus leaning towards the <strong>Positive Space</strong>, while solution architectures aim to have the least technical details possible to outlive the technologies used to realize them, therefore leaning towards the <strong>Negative Space</strong>.</p><h4>Balanced Example:</h4><p>Reference Architecture:</p><ul><li><em>A `domain-model` must not be owned by more than one `domain-service`.</em></li><li><em>Platform consumers must only be able to access `domain-model` representations through dedicated API Resources provided by their parent `domain-service`, whose semantic identifiers follow the name of the `domain-model` in kebab-case.</em></li><li><em>A `collection-resource` must have a semantic identifier in the plural form.</em></li><li><em>A `collection-resource` must not return an indefinite number of items.</em></li><li><em>A `collection-resource` must return a successful response even when no items are returned.</em></li><li><em>A `collection-resource` must not support query filtering unless the specific fields by which it can filter are declared.</em></li><li><em>An `instance-resource` must only belong to a single `collection-resource`, and its unique identifier must not be semantic.</em></li><li><em>Foundational behavioral parameters of API resources must not require code changes and must declare default values.</em></li></ul><p>Solution Architecture:</p><ul><li><em>Create the `collection-resource` of the `customer` `domain-model`.</em></li><li><em>The default maximum number of items returned must be 5.</em></li><li><em>It must support query filtering on the properties name and age.</em></li><li><em>It must not return </em>sensitive<em> properties if the requesting user is not a family member of the customer and the `customer` age is less than 18.</em></li></ul><p>In the above balanced example, it can be seen how the Reference Architecture tends to have more <strong>Negative Space</strong> definitions, while the Solution Architecture aggregates more <strong>Positive Space</strong> definitions instead.</p><p>However, the Reference Architecture has “<em>A collection-resource must have a semantic identifier in the plural form.</em>”, which leans towards the <strong>Positive Space</strong>, while the last item of the Solution Architecture, a business rule, does the opposite.</p><p><strong>A balance.</strong></p><p>I hope that you can find <strong>Positive Space Design</strong> and <strong>Negative Space Design</strong> examples that you encountered or may have missed, and that it perhaps gives you ideas of ways to improve what’s being done.</p><p>You may also be interested in “The Consistent Application of Constraints”, a technique described in my article <a href="https://medium.com/@mariomesaglio/software-architect-what-is-it-about-4cd3f749ab1">What is a Software Architect?</a> It was derived from the “Null Style,” and it remains closely aligned with <strong>Negative Space</strong> <strong>Design</strong>.</p><p><strong>Have a wonderful day.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=293b93e12ad3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SDD Patterns | Repository Steward]]></title>
            <link>https://medium.com/@mariomesaglio/sdd-patterns-repository-steward-46e7816e8237?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/46e7816e8237</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-governance]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Tue, 22 Sep 2026 14:05:28 GMT</pubDate>
            <atom:updated>2026-10-28T19:08:22.323Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yMeqCDVXhFoOeJ25b2EYIg.jpeg" /></figure><h3>Concern</h3><p>In both assistive and agentic AI development processes, the ways of working of a repository need to be inferred by the models involved. Without a standard entry point or mechanism to steer discussions that involve them, the behavior becomes unpredictable and inefficient, particularly in multi-repository pipelines.</p><h3>Solution</h3><p>Establish a <strong>Repository Steward</strong> as a singleton agent definition for every repository that inherits a standard chassis and the repository-specific details to both override and enrich it. Once defined, it must be established as the default agent using conventional frameworks that most models would follow, for both human and agentic workflows.</p><p>The Repository Steward would be the starting root of every specification traversal and artifact discovery throughout the repository. It employs a preset governance framework, such as hierarchical and ontological, to associate them in multiple levels and categories. Everything in the repository must be reachable and understood through the steward.</p><p>The Repository Steward would implement routines that follow what’s expected of the repository and its ways of working, such as commit discipline, quality assurance, and development practices and pull-request procedures.</p><h3>Application</h3><p>Create a template agent definition as per the framework of choice, typically as a combination of Markdown and JSON/YAML files, which will become the basis of every Repository Steward.</p><p>Create a routine in a separate specification that aims to adopt the Repository Steward pattern into any target repository, called the <strong>Steward Adoption Assistant</strong>.</p><p>It may be enhanced to interact with the end user and analyze the target repository to infer patterns of use and incorporate them, as well as to perform several steps of validation and recursion to ensure the adoption has been performed successfully.</p><p>The Steward Adoption Assistant must be prepared to employ the agreed-upon conventions for coding agents to traverse and be configured within the repository, such as <a href="https://agents.md/">agents.md</a>, paired with vendor-specific (e.g., Claude) customizations, in that order.</p><p>The Repository Steward must be lightweight, and techniques such as agent impersonation may be employed to separate behavior that would otherwise be defined in the steward into separate agents that the former may impersonate or derive the execution of its routines from.</p><p>At the time of creating a new repository, or making an existing one adopt the pattern, the Steward Adoption Assistant may be called upon to assist and test the adoption afterward.</p><h3>Usage</h3><p>Developers who open the repository in an IDE would have every conversation made with the <strong>Repository Steward</strong> by default, gaining immediate advantage of the ways of working and its context and references. Each repository may have its steward enhanced with additional routines that help developers produce artifacts within, as well as other agents that the steward would impersonate for similar purposes.</p><p>Likewise, agentic flows where independent agents need to delve into the repository will go through its steward, attaining the same benefits and improving their traversal and inference. Following this technique, forums of agents can be created for multi-repository collaboration, where their respective stewards are called forth, each executing their own tailored behavior and impersonating other sibling agents when necessary.</p><p>The central point is that if anyone or anything needs to interact with a repository, it will automatically do so through its steward. There will be no other way of doing so.</p><h3>Implications</h3><p>The Repository Steward will add an extra layer of context to every interaction made within the repository and increase the upfront token investment. Ideally, the average token usage should be lowered by having it orchestrate the typical development workflow and resolve the references to the required information. The adoption of a strong specification governance framework will greatly help with the above, such as ubiquitous language, use of technical tokens, and standard specification references.</p><h3>Observations</h3><p>The Steward Adoption Assistant could be made part of a larger <strong>SDD Adoption Assistant</strong> agent, which will account for other patterns as well and incorporate them as a whole into a target repository.</p><p>The Repository Steward could be enhanced by defining behavioral personas (e.g., architect, developer, tester), so that it can be instantiated as one of them and perform its duties with a tailored context. These personas could be defined in separate child specifications, following a plug-in approach.</p><p>The Repository Steward Template could contain default personas, while each repository may create its own, or they may be defined in the prompt itself if there is a need for it.</p><p>The design pattern was defined as an empirical need to increase the commonality of multi-repository interactions as well as to enhance the interoperability of dependent teams. It helped in implicitly progressing towards agentic processes, even if truly independently deployed models were not in place. Therefore, I would advise you to take it into consideration if the latter is a direction your team plans to take.</p><p><strong>Have a wonderful day.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=46e7816e8237" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serás lo que debas ser, o no serás nada.]]></title>
            <link>https://medium.com/@mariomesaglio/ser%C3%A1s-lo-que-debas-ser-o-no-ser%C3%A1s-nada-9e92b37c237b?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e92b37c237b</guid>
            <category><![CDATA[argentina]]></category>
            <category><![CDATA[cultura]]></category>
            <category><![CDATA[spanish]]></category>
            <category><![CDATA[filosofia]]></category>
            <category><![CDATA[español]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Thu, 27 Aug 2026 21:01:24 GMT</pubDate>
            <atom:updated>2026-08-28T00:39:36.592Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*66GBaUu0e4-4tq-2il71XQ.jpeg" /><figcaption>Una mano dificil de jugar, mas alla del ancho de espada.</figcaption></figure><p>Una célebre frase, de mis preferidas, surge como interpretación de un fragmento de una carta enviada por el general San Martín a su amigo Tomás Guido <a href="https://sanmartiniano.cultura.gob.ar/noticia/la-genesis-de-una-monumental-biografia-el-intercambio-epistolar-entre-mariano-balcarce-y-bartolome-mitre/">en diciembre de 1827</a>. Si bien su exactitud en prosa difiere de aquella carta, donde el general escribe :</p><blockquote>“<em>… no puedo prescindir de que tengo una hija y amigos, aunque pocos, a quienes debo satisfacer. Por estos objetos, y no por lo que se llama gloria, es que he trabajado dos años consecutivos en hacer extractos y arreglar documentos que acrediten, no mi justificación, pero sí los hechos y motivos sobre que se ha fundado mi conducta en el tiempo que he tenido la desgracia de ser hombre público;</em><strong><em> porque estoy convencido de que serás lo que hay que ser, si no eres nada</em></strong><em>”</em></blockquote><p>Creo importante que, al leer entre líneas, “<em>arreglar documentos</em>” pueda referirse implícitamente a su legado como hombre y prócer de la patria, y que no se atribuya la autoría de los hechos que se llevaron a cabo, directa o indirectamente, por su accionar. Se intenta alejarse activamente del crédito, hecho explícito por el fragmento<em> : “no mi justificación, pero sí los hechos y motivos sobre los que se ha </em><strong><em>fundado mi conducta</em></strong><em> en el tiempo que he tenido</em><strong><em> la desgracia de ser hombre público</em></strong><em>”</em></p><p>El general San Martín era un hombre único en varios aspectos, pero en uno fundamental en el que quiero expresarme. Yo creo fehacientemente que representa, en sus dichos y hechos, aspectos fundacionales del espíritu e identidad argentinos. A tal punto, que me atrevo a correlacionar el dicho en cuestión con la estrofa más fuerte del himno <a href="https://www.casarosada.gob.ar/nuestro-pais/simbolos-nacionales?task=view&amp;id=2729">más hermoso de la historia</a>:</p><blockquote><em>Sean eternos los laureles</em><br><em>que supimos conseguir:</em><br><em>coronados de </em><strong><em>gloria</em></strong><em> vivamos</em><br><em>o juremos con </em><strong><em>gloria</em></strong><em> morir.</em></blockquote><h3><strong>Gloria</strong>.</h3><p>El argentino vive y muere por ella. Nuestro propio himno lo declara: “coronados de gloria vivamos; o juremos con <strong>gloria</strong> morir”. El dogma es coherente, independientemente de su resultado final. Me es imposible contener las lágrimas al escuchar las estrofas y me declaro incompetente para cantarlas adecuadamente por los mismos motivos.</p><p>Esto se refleja muy fuertemente en el deporte, en cualquier deporte, pero, como profesional y argentino, puedo asegurar que se proyecta en casi todo si sabes dónde mirar. Cada persona le da un significado distinto a su <strong>Gloria</strong>: ya sea<strong> </strong>un éxito meramente personal, algo profesional o algo que trascienda a uno mismo. No cambia la idea ni la profundidad de adónde quiero llegar.</p><p>Uno puede reflejarla en el éxito de otros, como un hijo que logra un cometido; un equipo que gana un partido; cuando el país mejora en algún índice; ganar un partido de truco con amigos; o en conquistar a la persona de quien uno está enamorado.</p><p>El argentino percibe la búsqueda de <strong>Gloria</strong> como algo irrevocablemente necesario e intrínseco. Es el fin de su accionar, ya sea consciente o inconsciente. Cuando se obtiene, se siente como si uno naciera de nuevo; es una afirmación de identidad. Es por eso que, yo creo, las victorias más fáciles de demarcar, como un partido de fútbol que ganamos, generan tanta, pero tanta emoción. Lágrimas, gritos hasta quedarnos sin voz, saltos y abrazos, concesiones, promesas, perdonamos, amamos y las líneas artificiales que nos separan parecen desaparecer en un instante. Yo no veo el fútbol por el deporte; lo veo por la gente y por lo que provoca.</p><p>De la misma manera, cuando la derrota nos acontece, la sufrimos con la misma o con mayor intensidad. La razón y la lógica se alejan del marco de la pasión, y lo que queda es un vacío irremplazable. No hay abrazo ni palabras que lo llenen; si bien, por supuesto, ayudan. Fui testigo de personas muy fuertes que deciden alejarse y encerrarse ante una derrota, prefiriendo la soledad absoluta a cualquier compañía. Como un animal que decide irse de esta tierra (morir) por propia cuenta. Y no hago esta alegoría en vano: en mi entender, la derrota es una muerte ontológica para el argentino.</p><p>Es por esto que a personas que no se formaron en esta cultura quizás les cueste entender cómo la pasión nos desborda en ambos casos. No intento disminuir ni hablar peyorativamente de las pasiones de otras culturas; simplemente intento describir hechos empíricos que viví en mis casi 38 años y cosas que escuché de personas con más experiencia aún.</p><blockquote>Les pido que, si tienen menos de un minuto, vean esto: <a href="https://www.youtube.com/watch?v=4SeLb9yMv_E">https://www.youtube.com/watch?v=4SeLb9yMv_E</a>. Muestra los momentos previos al último penal que nos llevaría a ser campeones del mundo por tercera vez. Sientan la anticipación, escuchen los gritos, vean a gente que quizás nunca se haya visto en su vida abrazarse como si fueran familia, vean cómo la gente decide festejar junta en la calle casi de manera automática, y no solo desde sus hogares. Esto ocurrió en un momento difícil tanto en la Argentina como en el mundo, y creo que es una demostración clara de lo que intento explicar.</blockquote><p>La Gloria que perseguimos no es la que se recibe, sino la que se hace: la que San Martín eligió cuando rechazó el crédito, la que se busca aunque nadie mire, aunque uno muera lejos y olvidado. No renacemos al ganar ni morimos al perder. Pero nunca dejamos de perseguir la <strong>Gloria</strong>, porque, como cantamos, menos seguido de lo que deberíamos: “<em>coronados de </em><strong><em>gloria</em></strong><em> vivamos; o juremos con </em><strong><em>gloria</em></strong><em> morir”.</em></p><p>La pasión es la fuerza natural que nos empuja a nacer, a vivir, a morir y a vivir de vuelta, en busca de nuestra querida <strong>Gloria</strong>. Porque hasta la muerte juramos llevarla.</p><p><strong>Seremos lo que debemos ser, o no seremos nada.</strong></p><p>Lo indicado arriba es puramente cultural y no genético. Cualquier persona que comparta los ideales descriptos anteriormente es un argentino en potencia, lo cual queda evidenciado por las miles de personas que nuestro país ha adoptado desde hace ya más de doscientos años. <a href="https://www.oas.org/dil/esp/constitucion_de_la_nacion_argentina.pdf">La constitución</a> declara:</p><blockquote>“… <em>y asegurar los beneficios de la libertad, para nosotros, para nuestra posteridad, y </em><strong><em>para todos los hombres del mundo que quieran habitar en el suelo argentino</em></strong><em>”</em></blockquote><p>Me entristece profundamente ver a tanta gente del mundo hablar sin experiencia ni conocimientos sólidos sobre lo que somos como pueblo. Los invito a cada uno de ustedes a experimentarlo por su cuenta, a tomar un mate con bizcochitos, a que los abracen un par de veces y a ver si piensan lo mismo de nuestra querida Argentina.</p><p>Un abrazo.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e92b37c237b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Perfect Hammer]]></title>
            <link>https://medium.com/@mariomesaglio/the-perfect-hammer-209c589a2390?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/209c589a2390</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[craftsmanship]]></category>
            <category><![CDATA[discipline]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[individuality]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Tue, 10 Jun 2025 19:38:06 GMT</pubDate>
            <atom:updated>2025-06-10T21:21:05.012Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MEOpH46o99byexSeaPpBEg.jpeg" /></figure><p>AI may appear as a perfect hammer,<strong> but not everything is a nail.</strong></p><p>The use of AI without discipline makes it easy to become inadvertently dependent on it and overlook the individual qualities one can bring to the work at hand or the value of existing tools that don’t require them to function. It has<strong> </strong>greatly reinforced my appreciation for the qualities and value of human ingenuity, individuality, and craftsmanship.</p><p><em>Throughout, I use </em><strong><em>&#39;AI&#39;</em></strong><em> as shorthand for large language models (i.e., LLM), natural language processors, and GenAI tools.</em></p><h3>Motivations</h3><p>In the same way that I don’t buy spice mixes, I prefer not to use frameworks that would end up doing a lot behind the scenes. It conflicts with the sense of ownership, promptly triggers impostor syndrome, prevents deeper levels of commitment, and reduces my appreciation, regardless of the value others place on it.</p><p>I’ve learned that it’s not a matter of these tools and technologies performing a lot of “magic” (as we say back in Argentina). It is about how they are used and the attitude of those who use them.</p><p>For example, I’ve seen AI being used to perform tasks that a simple calculator or a deterministic script would be capable of accomplishing, such as translating a document from one syntax to another (e.g., JSON to YAML).</p><p>That is not how I hope people decide to utilize AI. Instead, couldn’t they, with the help of AI, find the knowledge to perform such activities instead of asking it to do it directly for them? Or couldn’t they have employed AI to generate a tool, like a script, that would allow them to address these concerns in the future without any dependency on it afterward?</p><p><em>El Eternauta</em> reminds us, “<strong>Lo viejo funciona.</strong>” — “The old works.”¹ (Favalli to Juan Salvo).</p><blockquote>¹ Héctor G. Oesterheld (writer) and Francisco Solano López (artist), El Eternauta, serialized in Hora Cero Semanal (Buenos Aires: Editorial Frontera, 1957–1959); collected ed. 1969. Author’s translation</blockquote><h3>Discipline</h3><p>Discipline can be meaningfully assessed not just in the face of hardship but in the presence of convenience. When individuals are given tools or methods that significantly reduce the effort, cost, or time required to complete tasks, their response becomes a telling measure of discipline. It helps demonstrate how far they will act beyond immediate comfort and personal boundaries, even when doing so risks overreliance or a loss of independence.</p><p>Discipline is not innate; it is learned, conditioned, and actively maintained. Some take to it more easily than others, but in all cases, it requires deliberate cultivation. Our industry, like many others, depends on discipline — not only to achieve results but to sustain long-term integrity and capability in a world of ever-increasing convenience.</p><h3>Recommendations</h3><ol><li>Never ask an AI to perform a job that you are expected to be capable of doing. Instead, use it to drive yourself to acquire the knowledge and abilities to perform it.</li><li>When it comes to requests that fall outside your expected scope of work, invest time in understanding how the outcome was reached, how it works, and add a personal trait to it.</li><li>Don’t use AI as the first option for every new task; try to resolve the problem yourself or, at the very least, establish the groundwork for it and build from there.</li><li>Employ AI to help you create the tools to address the concerns you need to solve rather than asking it to resolve those concerns for you directly.</li></ol><h3>Conclusion</h3><p>You do not need AI to perform your job; you use it when it provides benefits, and the aspect that primarily improves is <strong>time</strong>.</p><p>If AI is removed from the equation, one can still accomplish all of it with what we have had available for many years, which is our minds, our ability to work together, and the tools we have produced to this day that won’t require hundreds of billions of parameters to function.</p><p><strong>Think about how many times in the last week you’ve used AI to perform tasks you were able to do before it was accessible to you. Now, how many of those can you still perform without AI? That number should not have been reduced; only the time should have been improved and the knowledge you attained during it.</strong></p><p><strong>Otherwise, I suggest introspection and a change in approach to prevent mental stagnation and unnecessary reliance on tools over which you have little control and can disappear from your reach at any time.</strong></p><p><strong>Have a wonderful day.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=209c589a2390" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservice Design Patterns — Embedded Services]]></title>
            <link>https://medium.com/@mariomesaglio/microservice-design-patterns-embedded-services-f6ff2fb9e553?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6ff2fb9e553</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[service-orientation]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 23:42:01 GMT</pubDate>
            <atom:updated>2025-01-22T22:34:54.825Z</atom:updated>
            <content:encoded><![CDATA[<h3>Microservice Design Patterns | Embedded Services</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6CqpKSI3jlIc1mK4sm-S7A.jpeg" /><figcaption>A lonely trolley in the heat of San Francisco summer.</figcaption></figure><p>Defining domains, subdomains, and bounded contexts as part of a Domain-Driven Design approach is a creative process involving people from various specialties in the business domain and technology. This process is the foundational step in defining microservices in a top-down approach, which is the direction of most transformation initiatives.</p><p>In an ideal world, microservices should be straightforward to subdivide and aggregate as design iterations occur or if, during their lifetime, it is considered practical. One expects this when choosing microservices as the architectural model. But in the real world, is it straightforward? No, it is not, far from it.</p><p>How can one freely exercise bounded context segregation and aggregation without being constrained by technical caveats or limitations?</p><h3>Concern</h3><p>While defining the problem space in domain-driven design, the domain, subdomains, and models, one must not be limited by technology but instead inspired by the business requirements, the company communication framework*, and domain semantics.</p><blockquote><strong>* Conway’s Law:</strong></blockquote><blockquote><em>Organizations which design systems (in the broad sense used here) are constrained to produce designs which are copies of the communication structures of these organizations.</em></blockquote><blockquote><em>— Melvin E. Conway, How Do Committees Invent?</em></blockquote><p>When transitioning into solution space, the technology and methodology project the definition of our bounded contexts into technical artifacts, which, generally, albeit not necessarily, map against a single microservice.</p><p>At that point, various technical considerations may arise, such as:</p><ul><li>What is the reason for separating a microservice that is (currently) deemed as not broadly reusable? (e.g., an integration service acting as an anti-corruption layer is a typical example)</li><li>How would the operational complexity and effort involved in maintaining another microservice balance against a well-designed domain architecture’s abstract “intangible” value and the operational costs it entails?</li><li>Why are we separating a highly reusable microservice? Wouldn’t that create a single point of failure and implicitly ingrain consumers’ concerns regarding costs, scalability, and availability without allowing them to address them?</li></ul><p>And they are all valid. Sometimes, architects get caught up in “good practice” and forget, ironically, about the practicality of their designs once they have to be implemented. That is a capital sin that one, as an architect, must be cognizant of and work on proactively and actively to suppress whenever feasible. A delicate balance must be exercised between architectural prerogative and practicality.</p><h3>Solution</h3><p>What is the principal difference between a target microservice and a software component within the same runtime environment as its consumer? The former is independently deployable, maintainable, scalable, autonomous in the choice of technology, and governed by a self-reliant, dedicated team. There are additional traits, of course, but for the intent of this article, these last should suffice.</p><p>The <strong>Embedded Services</strong> design pattern aims to bridge the gap between these, allowing a separately implemented microservice to be deployed in either or both <em>Standalone </em>and <em>Embedded</em> modes.</p><ul><li>The <em>Standalone </em>mode is the default mode, where the microservice deploys autonomously and separately from others’ runtime environments.</li><li>The <em>Embedded</em> mode deploys the microservice as an independent software component within the runtime environment of a host microservice that acts as its consumer.</li></ul><p>Regardless of the mode, it is essential to recognize that the microservice is still being governed and versioned independently by a team, as is expected from the microservice architecture adjacent methodology. Several caveats must be considered when implementing the<strong> Embedded Services</strong> pattern, but they can be addressed once recognized.</p><h3>Application</h3><p>The target microservice must be consumed through a dedicated API to prevent breaking the encapsulation and remain independently governed. By configuration, the consumer would perform an in-memory call if the target microservice is <em>Embedded</em> or a remote call (e.g., HTTP) if it is deployed in <em>Standalone </em>mode instead, with no change in the client code.</p><p>Implementing specialized frameworks to drive microservice interactions, such as a service mesh, would ensure that the abovementioned constraint is developed once without redundancy. Either way, the consumer runtime is unaware of the target microservice deployment mode.</p><h3>Caveats</h3><p>The <em>Standalone </em>deployment must not share state nor be coupled in any way with <em>Embedded </em>instances, and vice-versa. It must be accepted that different versions of the Embedded instances may exist within their host consumers, as the team governing the latter is responsible for pushing for updates whenever required, and their priorities and capacity for doing so may differ.</p><h3>Benefits</h3><p>The benefits include but are not limited to, reduced operational costs, efficiency, and complexity; increased performance for embedded services following in-memory calls; less traffic required in the service network infrastructure; and higher cost efficiency driven through a by-case scaling.</p><p><strong>Have a wonderful day.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6ff2fb9e553" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Contract-First Approach]]></title>
            <link>https://medium.com/@mariomesaglio/contract-first-approach-e0814beb551b?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/e0814beb551b</guid>
            <category><![CDATA[design-patterns]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[planning]]></category>
            <category><![CDATA[api]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Mon, 25 Nov 2024 01:35:07 GMT</pubDate>
            <atom:updated>2025-04-25T16:16:13.540Z</atom:updated>
            <content:encoded><![CDATA[<h3>Integration Design Patterns | Contract-First Approach</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*81trMqnnFw97yKKebfzWUw.jpeg" /><figcaption>Time is the primordial contract to which we are all bound from inception, and our lives are coupled to it innately and unconditionally.</figcaption></figure><p>The contract-first approach is a foundational design pattern and methodological approach to application integration, extending to both technology aspects and governance. The concept it entails should be one of the first things any IT professional learns, regardless of the role. More so, it should be understood similarly by people from any industry.</p><p>As with any other pattern, let’s start with the concern that we are trying to address here:</p><p><em>How can I develop a system built parallel to others while depending on them with minimal risk of rework and negative coupling during definitive integration?</em></p><p>The word system was employed here to remain agnostic to the IT domain, as we found systems in our everyday lives and every business domain.</p><p>The solution to that concern is establishing agreed-upon contracts<strong>*</strong> between each system before any work to make them interoperable starts<strong>**</strong>.</p><blockquote><strong>*</strong> Interoperability is the ability of two systems to <strong>exchange</strong> information and <strong>interpret</strong> (i.e., understand) the information shared.</blockquote><blockquote><strong>**</strong>A contract is a series of coherent constraints by which two systems agree to interact.</blockquote><h3>Contract Definition</h3><p>In information technology, a contract is often promptly associated with an API (i.e., application programming interface), but it doesn’t have to be. For example, if two independent components are being developed for a platform with a dependency, not limited to but hopefully unidirectional, they would benefit from a contract-first approach. Otherwise, the evolution of one could diverge from the expectations of the other.</p><p>The pattern’s application varies depending on the systems involved. However, this article aims to provide a generic approach for additional contexts:</p><ul><li>Define the medium and syntax for building the contract, the <strong>repository</strong> to make it available, and the <strong>versioning</strong> system to govern its changes.</li><li>Define and document the <strong>lifecycle</strong> for each contract version and provide constraints and guidelines for its lifecycle states.</li><li>Agree on who will author and own the contract until its deprecation and the <strong>communication</strong> frameworks.</li><li>Marshal and <strong>publish</strong> the contract to the repository, configuring all necessary features to adhere to the above aspects.</li><li>Once all the above is performed, proceed with the work and make part of its definition of done (DoD) to <strong>comply</strong> with the contract.</li></ul><p>The last item in the list above is the most important in the pattern, as it provides the foundational guidance on how each system must perform its work:</p><p><strong>The system must be coupled to the contract. Not the other way around.</strong></p><p>Additionally, the host system can perform the above process in isolation, considering that no external consumers currently exist. In such cases, the consumer systems are considered tacit, and assumptions must be made for their compatibility and expectations. Tacit consumers refer to hypothetical or assumed systems that might consume the contract in the future, even if they don’t yet exist.</p><p>Depending on the specific contract <em>(e.g., an HTTP API contract)</em>, many other practices, such as consumer-driven contracts and the meet-in-the-middle approach, could be applied instead. However, they were not accounted for because the article wants to keep the pattern’s application generic.</p><h3>Contract Coupling</h3><p>It is also essential to recognize the pitfalls of not respecting the direction of the said coupling. For that, I propose a categorization I distilled from an SOA Design Principle, the <strong>Service Loose Coupling Principle </strong>(Erl, Thomas. <em>Service-Oriented Architecture: Concepts, Technology, and Design</em>, 2005). There are <strong>Positive Couplings</strong> and <strong>Negative Couplings</strong>.</p><ul><li><strong>Positive Couplings</strong> originate from a <em>system </em>to the <em>contract</em>, such as when a system is implemented to comply with the contract <em>(e.g., the development occurs after the contract is made)</em>.</li><li><strong>Negative Couplings</strong> originate from the <em>contract to a system, such as when the contract adapts to its underlying implementation </em>(e.g., using properties with names that help identify implementation technologies, like “javaException”)<em>.</em></li></ul><h4>Positive Coupling</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fS3SF6Q6ynRui8fsg3-jsg.png" /><figcaption>Any dependency vector originating from a system and targeting the contract is deemed <strong>Positive Coupling</strong>.</figcaption></figure><p>To help visualize positive contract coupling, one may consider the contract to be the abstraction in SOLID’s Dependency Inversion Principle (i.e., DIP)*.</p><blockquote>*As Robert C. Martin explains in <em>Clean Architecture: A Craftsman’s Guide to Software Structure and Design</em>:</blockquote><blockquote><em>“High-level modules should not depend on low-level modules. Both should depend on abstractions. Abstractions should not depend on details. Details should depend on abstractions.”</em></blockquote><p>The system that provides the contract must base the underlying implementation entirely on it as a form of <strong>positive coupling</strong>, adding additional quality assertions during the development lifecycle to ensure alignment and compliance. It is essential for everyone involved to understand the concept so that its application remains successful.</p><p>Finally, I denote positive coupling as <em>simple to detect and easy to miss</em>.</p><p>It is <em>simple to detect</em> because all coupling vectors must display a single centralized direction toward the contract. This can be likened to the phrase ‘all roads lead to Rome,’ meaning all dependencies converge on the contract, ensuring a unified direction.</p><p>It is <em>easy to miss</em> because if positive coupling is not attained, there are no evident deterrents or obstacles during implementation, nor are there specific benefits that one could look for during that time. It depends on discipline, projection, mindfulness, and understanding.</p><p>While the immediate benefits of positive coupling might not always be visible during implementation, the long-term value of streamlined integrations, autonomous evolution of underlying behavior, and increased trust and predictability will swiftly become apparent once integration starts.</p><h4>Negative Coupling</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MxN77RsWeImO5zRAcQyQDA.png" /><figcaption>Any dependency vector originating from the contract is deemed as a<strong> Negative Coupling</strong>.</figcaption></figure><p>Identifying negative coupling, however, may be nuanced in complex system environments, and in some cases, a keen eye and further steps are required to pinpoint it. Although there are many identifiable scenarios, this article selects the most harmful one and defines it as <strong>I</strong>mplicit <strong>I</strong>ndirect <strong>C</strong>oupling (i.e., <strong>IIC</strong>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y7pGoKNF4Cvy_MK-V0ljkg.png" /><figcaption>It is a simplistic example of <strong>Implicit Indirect Coupling</strong>, showing how the Consumer is <em>implicitly</em> and <em>indirectly</em> coupled to the Implementation through the Contract.</figcaption></figure><p><strong>I</strong>mplicit <strong>I</strong>ndirect <strong>C</strong>oupling aligns with the simple definition of negative coupling but applies to complex environments, spanning multiple integration steps, systems, and contracts. It is often detected reactively, through symptomatic issues such as cascading errors or unexpected deep dependencies, only after some damage has occurred.</p><p>The leading cause of IIC is a foundational assumption of the <strong>Contract-First Approach</strong>: <em>one must trust the contract and its authors</em>. If this assumption is not met, the contract’s value is null, and the approach is futile. How can this be? That is where the “<em>implicit</em>” aspect comes into the picture.</p><p>Instead of creating a fictional example, I’ll describe a situation many years ago. We had an enterprise service bus (i.e., ESB) exposing reusable services to the broad enterprise ecosystem, abstracting individual systems from each other using canonical models wrapped in standard contracts. It was a typical EAI architecture where a central architecture board owned the abovementioned artifacts, and a development team implemented them and provided the services that used them.</p><p>After many years of successful operation, exceptions suddenly appeared in many of these services. Although the time at which this started was the same, as each service had its particular business context, each error was addressed individually as the affected customers and business impact differed.</p><p>I was the technical leader of the development team in that case. With my middleware experience, I suspected a foundational caveat of centralized reusability: a <strong>single point of failure</strong>.</p><p>While the business team was putting out fires and trying to make sense of what was happening, we delved deeper into the exceptions, trying to find common ground, and that we did. The errors originated from a single integration service against a CRM system that was evidently involved in many enterprise service flows. Once the source was identified, we took the following assertions regarding what caused the error:</p><ul><li>Code malpractice or negligence (e.g., invalid casting)? -&gt; <strong>false</strong>.</li><li>Infrastructure changes or imitations (e.g., stale certificate)? -&gt; <strong>false</strong>.</li><li>Contract invalidation (e.g., properties in an invalid format)? -&gt; <strong>false</strong>.</li></ul><p>But we saw something in the logs buried deep within layers of standard implementation frameworks, specifically those addressing error code management, which most developers have yet to interact with. There was a validation that checked what <strong>response code</strong> the CRM system returned, and if it was an OK code, the response was deemed successful, and the process would be allowed to continue; in case of the contrary, an error response from the system would be assumed, where a specific set of properties would be returned, and the process would be interrupted after an appropriate exception was thrown.</p><p>And what happened? The CRM system changed its <strong>response code</strong> for a successful request without letting anyone else know and was probably unaware that other systems depended on it. Not only that, the change in <strong>the response code</strong> was not an explicit decision by the CRM system; it was because they switched the product (technology) that handled their APIs, and as they didn’t expose a standard result code set, the raw result code from the said product started being returned instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k1HBPSmO8rJc8TnjGr645g.png" /></figure><p>In other words, the CRM system did not know they were changing how the <strong>response code</strong> of their interfaces was being returned and had no way to find it out without someone looking at it and seeing it differ. It was found <strong>symptomatically</strong> once the change reached the integrated environment, and the centralized integration service that we’ve developed as part of the enterprise service bus broke down, taking all dependent business systems down with it.</p><p>The situation described beforehand is a classic example of <strong>I</strong>ndirect <strong>I</strong>mplicit <strong>C</strong>oupling, which transcends many layers from the originating consumer to the last provider in the transaction. The damage produced by the property design of the CRM contract was broad and expensive, but a lesson was learned in the end. I collaborated with the central architecture board to implement the <em>Exception Shielding* </em>pattern as a standard approach to contract definition and its underlying implementation.</p><blockquote>* In <em>SOA Design Patterns</em>, Thomas Erl defines Exception Shielding as follows:</blockquote><blockquote>“The Exception Shielding pattern is applied to prevent unhandled exceptions from being propagated to service consumers. This is achieved by intercepting exceptions and replacing them with sanitized information that does not reveal sensitive internal details.”</blockquote><p>Hopefully, the article provided additional insights into the importance of a contract-first approach and how it is not limited to the IT domain but also to any context in which different systems interact. We also touched upon the most harmful type of <strong>Negative Coupling</strong>, the <strong>I</strong>ndirect <strong>I</strong>mplicit <strong>C</strong>oupling (i.e., IIC).</p><p><strong>Have a wonderful day.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e0814beb551b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is a Software Architect?]]></title>
            <link>https://medium.com/@mariomesaglio/software-architect-what-is-it-about-4cd3f749ab1?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cd3f749ab1</guid>
            <category><![CDATA[growth-mindset]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[career-building]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[information-technology]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Mon, 18 Nov 2024 00:35:37 GMT</pubDate>
            <atom:updated>2026-11-06T17:16:57.533Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ss0mDluTHye7_d8rnZH3w.jpeg" /><figcaption>He might be questioning it himself! London, 2019.</figcaption></figure><p>In the past, I had the opportunity to help people advance in their careers, from trainees to technical leaders and architects.</p><p>Most are often at a loss when defining what to do to become a <strong>Software Architect</strong> or what such a role does, and their parent company usually can’t either. It frequently falls to the usual inflexible checklist of knowledge one must attain, similar to most college curricula, or a forced vertical progression from seniority to seniority until you reach that level.</p><p>Such linear progression drives companies to position architects high on the hierarchy by default. It implies that if you want to become an architect, you need to “climb the ladder” first, which entails other unnecessary steps and conditions that are not essential, in my opinion, for the role to be exercised in its pure form.</p><p>This article challenges the established notion of a software architect, offering thoughts on the qualities sought and the harm that a strong hierarchy-coupling of the role may cause. It will also provide a foundational approach to tackling the architect’s first challenge: T<em>he</em> <em>blank page threshold</em>.</p><p>Although the article is primarily aimed at aspiring <strong>Software Architects</strong>, the concerns being addressed would be of interest to established ones, regardless of seniority. A collateral benefit it pursues is providing instruments for experienced architects to guide and coach those who aspire to become one.</p><h3>The Qualities of an Architect</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OMpe05DmHzZ8Wr686X4_Pw.jpeg" /><figcaption>Sharpness is one of the many qualities sought in a knife.</figcaption></figure><p>Those involved in the <strong>design</strong>, <strong>planning</strong>, and <strong>execution</strong> of a physical or abstract realization are architects. If we delve deeper into this line of thought, every person can be an architect for themselves innately.</p><p>Have you ever planned and cooked a meal for visiting friends? Let me tell you that, under the above definition, you are an architect (of your cooking). Nobody will deem you as such, though, as that is something you are to yourself but not to others.</p><p>The factor that enables you to perform as an architect for others is your proficiency in <strong>creating</strong> and <strong>communicating</strong> a design while <strong>overseeing</strong> its execution, ensuring it closely aligns with the originating concerns and constraints, and addresses the context in which it is implemented.</p><p>Those are the three key qualities of an architect. Once you become proficient enough in them, you can perform the role. The required level varies based on subject matter expertise, team composition, seniority, and legal compliance.</p><p>Each person is a world in and of itself, and the balance between these three qualities and the method to exercise them varies based on their individual traits. Some people are excellent at developing solutions but need help documenting them and conveying them to the team. In contrast, others are more effective with an experimental-driven approach, starting with a lean design (even without formal documentation) and focusing on how the implementation evolves, adapting rapidly to newly discovered factors.</p><p>These variations in balance and approach make the architect and characterize their style. I firmly believe there is no right or wrong, better or worse style. However, some complement each other while others collide. Some styles will match specific team compositions the best, while others would hinder their progress. The manager’s role is to identify these competencies effectively, which falls outside the scope of this article.</p><p>This heading aims to distinguish these qualities and guide those interested in improving on them, with the balance that each feels more at home, knowing there is no golden rule or unique path to follow.</p><h3>Role &amp; Hierarchy</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mcwpX53F9kbAJOULHMIEJA.jpeg" /><figcaption>The boss of the Ruhstaller brewery. Dixon, CA.</figcaption></figure><p>In software development companies, the architect position is often high in the hierarchy, usually above technical leaders and specialists. I understand the reasons behind it. All three fundamental qualities described beforehand are significantly influenced by experience, maturity in interpersonal and professional interactions, and the predisposition to be accountable with a strong sense of ownership.</p><p>Although these qualities are developed organically through the core verticals, such as software development and operations, there is often no clear path for those who want to pursue an architecture role and lack sufficient experience or meet the minimum hierarchical position requirement. <strong>I disagree with that.</strong></p><p>Failing to provide such career paths, resources, and coaching early on is a sure way to lose potential architects through attrition. Most IT professionals receive significant salary improvements by changing companies, as current companies often struggle to keep their regular increments competitive with the market’s offerings.</p><p>Although not the only solution to that problem, pursuing an early software architect career path will mitigate it. For example, isn’t it a recurrent theme for advisory companies to need more architects to work on pre-sales or advisories? What about product companies and their different lines of business?</p><p>By having a foundational team of architects in training, those who need more seniority or expertise to work by themselves not only must be seen as an investment, but they can add much value by performing more discrete tasks under the supervision of others:</p><ul><li><strong>Standardization</strong>: Creating documentation and implementation templates, and other reusable artifacts. They may assist when these are used to facilitate their Implementation.</li><li><strong>Knowledge Acquisition</strong>: Focusing on a single technology or methodology, they can be called in for specific situations where expertise is needed or shared with a broader group through training sessions, thereby enhancing their <strong>communication</strong> skills.</li><li><strong>Pre-sales contribution</strong>: Assisting other architects in creating the materials, analyzing previous engagements, and learning the ropes about <strong>planning</strong> and risk management.</li><li><strong>Assessing current initiatives</strong>: Assisting ongoing engagements and projects by <strong>reviewing</strong> their alignment with the standards, taking notes about lessons learned, and creating retroactive feedback.</li></ul><p>The tasks above are but a few of those that a trainee and junior architect could engage with, even while working in parallel as a developer. As they provide additional value, their remuneration can be adapted accordingly, addressing the attrition concern to some extent. The latter is also mitigated with the non-tangible exposure to more fundamental topics these tasks entail, as it would be hard to find similar experiences in a more directed, funneled, and traditional vertical.</p><p>One final aspect to note is that the examples above illustrate how an architect’s fundamental qualities materialize, and therefore, how they can be cultivated. There is no need to be high on the ladder or have 10 years of experience for that effect. <strong>That is a fallacy</strong>.</p><h3>The Blank Page Threshold</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sJVDi0uvckdvvNKa-dt9qQ.jpeg" /></figure><p>Whenever I am asked about the topics one must work on to facilitate their progression into a software architect role, I start the discussion with the following statement: “<em>You must overcome the fear of the </em><strong><em>blank page</em></strong><em>.</em>”</p><p>I give the same <strong><em>blank page</em></strong> to aspirants (e.g., in interviews and promotion exercises) to validate their potential as software architects. Although it refers to an abstract notion, it sometimes becomes an empty piece of paper.</p><p>What exactly are we referring to here with the term “blank page”? It is an empty canvas of thought without limitations, constraints to follow, frameworks to adhere to, or preconceptions on which to base decisions. It is the extreme opposite state of the design space that a software architect aims to create.</p><p>Seeing the reactions to placing an empty paper or whiteboard before a person and asking to create something is incredible. Although we focus on software in this article, the experience presented here is applicable to all fields. I encourage everyone to perform this test on colleagues, regardless of their seniority, and friends, irrespective of their field of expertise.</p><p>Some people can only proceed with additional instructions, guidelines, and examples before producing anything. They find it challenging to be in a situation where they must define the framework and rules of engagement, rather than having them provided inherently. That is what I call “<em>the</em> <em>fear of the blank page,</em>”<em> </em>and it is the most fundamental aspect to work on to improve your architectural skills.</p><p>How does one overcome it? There must be an infinite number of answers to this, as the core concept is grounded in an essential human trait: the fear of the unknown. The <em>blank page </em>is the unknown. Every person engages differently, based on personality and strengths; there is no “best way” that “fits all.”</p><h3>The Method</h3><p>As the final section of this article, I propose a framework to help both established architects and those in the making surpass the “Blank Page Threshold,” which comprises three aspects: <strong>Components</strong>, <strong>Constraints</strong>, and <strong>Consistency</strong>.</p><h4>Components</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*62GHAQMKwVXFb0wNokP50Q.jpeg" /><figcaption>Seiko 11A movement.</figcaption></figure><p>The first foundational step must be to define the design’s constituent components. A component is an atomic abstraction that serves as a building block for every solution. It is not limited to being a software component; we refer to any abstraction here, such as a boundary, a connection, a classification, a title, or a concept. Defining components display the design’s first signs of life. Every other item listed below works on this foundation. They are the instruments by which everything else is assembled.</p><p>It is the hardest part, as it suffers from a reversed cognitive overload — too many possibilities. There is no suitable place to begin, but one must start regardless. It should be approached following Bilbo’s advice to Frodo:</p><blockquote>“It’s a dangerous business, Frodo, going out your door. You step onto the road, and if you don’t keep your feet, there’s no knowing where you might be swept off to.”</blockquote><blockquote>Tolkien, J.R.R. <em>The Fellowship of the Ring</em>. HarperCollins, 1994.</blockquote><p>Like Frodo stepping out into the unknown, architects must embrace the ambiguity and uncertainty of defining components, knowing that a “blank page” is not something to fear, dread, or avoid. On the contrary, it is objectively the best foundational workspace. It must be viewed with excitement and as the ultimate benefit of taking the role: <strong>you make your own tools</strong>.</p><p>As the component catalog grows, it becomes the <em>solution language</em> through which the design is communicated. Therefore, semantics are key. Every named component must have a concise description of its meaning. Once this foundation is set, the architect’s mind must project the solution through its components, as if playing with blocks.</p><p>The process is iterative and cyclic. The first iteration produces a small number of components through which design is then engaged. Some terms in the solution language will be missing, requiring the architect to iterate again and define or refine new components. The process is called <strong>I</strong>ncremental <strong>C</strong>omponent <strong>D</strong>efinition, or <strong>IcD</strong> for short, which refers to the gradual naming and definition of components as the architecture is marshaled.</p><p>The <strong>I</strong>ncremental <strong>C</strong>omponent <strong>D</strong>efinition above constitutes the framework for every design process. Architects focus heavily on defining names and semantics in all solution phases. The solution language assembled through this process is crucial for <strong>creating</strong>, <strong>communicating</strong>, and <strong>overseeing</strong> the design.</p><h4>Constraints</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Vx3rPoiw3cETbqNPbLLpDg.jpeg" /><figcaption>It is keeping the fence together, constraining its movement.</figcaption></figure><p>An architecture must guide the production of artifacts defined from the originating requirements and quality agreements through <strong>C</strong>onsistent <strong>A</strong>pplication of <strong>C</strong>onstraints, or <strong>CaC</strong> for short. The purpose of <strong>CaC</strong> is to drive a target set of design characteristics to emerge organically from the artifacts produced, as these are shaped by consistently observing the constraints during their implementation, rather than being explicitly instructed by the architecture.</p><p>For example, a constraint that guides the design characteristic of <em>statelessness</em> and <em>elasticity</em> might be: <em>“Microservice instances must not depend on the runtime state of another to function, nor be directly coupled to it in any way or form.”</em></p><p>The <strong>CaC</strong> process should be interpreted as a preferred direction rather than an absolute rule, as some situations require the architecture to leave no room for any variable. In such cases, the constraints become explicit instructions to ensure alignment between design and implementation.</p><p>The <strong>implementation</strong> team must not be told what to do by the <strong>architecture</strong>. Instead, it must be provided with a coherent set of constraints to comply with. The assumption is that if the <strong>CaC</strong> process is followed, any output will innately attain the desired design characteristics, including addressing the originating <strong>requirements</strong> (e.g., a feature or a story).</p><p>The previous paragraph highlights the most significant point of contention regarding the coherence and coupling of the <strong>Requirements, Architecture, </strong>and <strong>Implementation</strong>.</p><p>The advised approach concerning this conundrum goes as follows:</p><ul><li>The <strong>Requirement</strong> (e.g., features or stories) must not describe how to implement a solution to address originating concerns. It must define what high-level capabilities, improvements, limitations, and artifacts are required.</li><li>The <strong>Architecture</strong> must not dictate how to implement a solution. It must define a design framework (a constrained, abstract space where any design instance must fit) through which the implementation team can project a compliant technical solution via the Consistent Application of Constraints (i.e., CaC process), covering the <strong>Requirement</strong>.</li><li>The <strong>Implementation</strong> must define a technical solution that complies with the <strong>Architecture</strong> and <strong>Requirements</strong>, utilizing their available skills and expertise to fill any gaps intentionally left by the former. Generally, the more mature the team is, the more significant the gaps left by the architect are as a token of trust and accountability.</li></ul><p>The framework above is called the <strong>L</strong>ayered <strong>D</strong>ivision of<strong> R</strong>esponsibilities, or <strong>LDR</strong> for short. It is one of many frameworks of this kind that can be utilized in an SDLC (Software Development Life Cycle), and it is the one I recommend.</p><p>The benefits are primarily the autonomy each “layer” has regarding the others, the lack of cyclic dependencies, the reduction of redundant documentation and definitions, and the ability to improve aspects of the solution with minimal managerial effort.</p><ul><li>The <strong>Implementation</strong> team can rework their entire solution (i.e., technical design, sometimes referred to as technical architecture) if it complies with the <strong>Architecture</strong> and <strong>Requirements</strong>, while the latter remain unaffected.</li><li>The <strong>Architecture</strong> can improve constraints, standards, and guidelines with minimal to no coupling with the technologies and solutions used by the <strong>Implementation</strong> team, while the <strong>Requirements</strong> remain unchanged.</li><li>The <strong>Requirement</strong> can be aligned with the originating concern’s language, improving interactions between analysts and SMEs and reducing the documentation effort (e.g., features and stories).</li></ul><p>The level of coupling mentioned beforehand dramatically depends on the architecture level being discussed in each case. A <em>Reference Architecture</em> will be entirely uncoupled for individual requirements and solutions, while a <em>Solution Architecture</em> will be coupled. The constraints discussed in this heading are entirely based on the components defined in the <em>solution language</em>.</p><h4>Consistency</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u3USYq5c4wboKkk56Y38yg.jpeg" /><figcaption>The dazzling effect of consistent geometrical shapes. Sheffield, 2019.</figcaption></figure><p>The importance of consistency in using the <em>solution language</em> and applying the <em>constraints</em> throughout an architecture cannot be understated. One must make extra effort to guarantee that no semantic redundancy or discrepancy is incorporated by using a name that overlaps with an established component of the <em>solution language</em>. Similarly, one must prevent all scenarios where the application of a <em>constraint</em> conflicts with another.</p><p>Consistency can be verified in various ways. Ideally, as with any other software, most of these should be verifiable through automated means and quality gates. That being said, and depending on the level of abstraction proposed by the architecture, some intelligent review is required. Not so long ago, that would be done by peer-reviewing the document, particularly points of collision or dependencies between constraints. I always said that architects who focus on consistency, as I do myself, become human compilers. They “compile” the architecture as if it were a series of instructions and see if it works. However, it’s an exhaustive task that requires patience, perseverance, attention to detail, and a touch of perfectionism.</p><p>With the advent of AI, a well-written architecture can be fed into an LLM, either through retrieval-augmented generation or training. The latter can be used to verify both designs (instances or specializations of an architecture) and implementations.</p><p>Interestingly, over the last decade, there has been an implicit directive to avoid detailed documentation, particularly that which relies heavily on natural language, instead of glorified code snippets, considering it as a necessary evil rather than a thoughtful investment.</p><p>But now, a well-written document is the best way to instruct an LLM to review it from humans, by humans, for humans. Using AI concepts, one can state that architects have the potential to become the best prompt engineers for both humans and LLMs and that architecture documents should be thought of as prompt collections. This concept warrants a separate article.</p><p>As a final note of consistency, the architect needs to write constraints in a way that can be asserted. Write how it can be attested as part of its definition. If it sounds similar to test-driven development, it is. It is also a good practice to explain the constraint to a peer and ask how it can be “broken” against itself or other constraints in the same context.</p><p>The article provided some insights and ideas on the role of a Software Architect and how becoming one is more about mindset and skill development than rigid hierarchical progression.</p><p><strong>Have a wonderful day.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cd3f749ab1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Power of Potential]]></title>
            <link>https://medium.com/@mariomesaglio/the-power-of-potential-ca3eac5dd713?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca3eac5dd713</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[resourcing]]></category>
            <category><![CDATA[leadership]]></category>
            <category><![CDATA[career-development]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Thu, 13 Jun 2024 00:39:41 GMT</pubDate>
            <atom:updated>2024-06-14T15:46:35.236Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3mRZfmsE7ZXA6b2P0gTS1w.jpeg" /><figcaption>Blooming in the middle of a desert.</figcaption></figure><p>I’ve had the opportunity to lead a software development practice comprised of various roles and seniorities, from trainee to architect. It was within the scope of such a position to define the evaluation mechanisms employed for the review, promotion, and interview processes and execute a career plan that would align the roster with the practice’s strategic goals.</p><p>In the country where I am from, Argentina, people start to work early in their careers. Sometimes, even while finishing the last year of high school, through professional apprenticeships. It is typical and sometimes expected to have a couple of years of work experience once you graduate. It is not uncommon for people to work in senior positions without a college degree because they decided to be dedicated to their work thoroughly. I am one of those people.</p><p>Career plans involved preparing individuals from the fundamentals to account for the number of trainees and junior positions available on the roster. That fact strongly influenced the selection process of new employees, where the candidates were evaluated primarily on potential rather than raw knowledge.</p><p>Our talent sourcing and development approach underwent a significant transformation, transcending the traditional focus on seniority, raw knowledge, certifications, and the like. We began prioritizing <strong>potential</strong>, a unique blend of attitude and resourcefulness, as critical to identifying the best candidates and nurturing our existing members. This strategic shift profoundly impacted our practice, fostering a culture of continuous growth, learning, and self-sufficiency.</p><p>Understanding and harnessing the <strong>power of potential</strong> is a critical factor in building and developing a successful team.</p><h3>How to identify potential</h3><p>We must realize that the people we work with are human, emotional beings with a history behind them. They are not pieces of software ready to be tested through an itemized checklist or by an assessment that forces them into the fallacy of the average.</p><blockquote>An excellent and applicable sentence from the Gilbert S. Daniels book “The Average Man ?”:</blockquote><blockquote>“The “average man” is a misleading and illusory concept as a basis for design criteria and is particularly so when more than one dimension is being considered.”</blockquote><p>Why is it so that, at least in the experience of my peers and my own, most of the interviews are performed that way?</p><ul><li>It is because it is a straightforward, secure, no-brainer approach to a complex process that requires and deserves much preparation and investment.</li><li>The soft skills required to perform an interview properly are not learned by reading or hearing about it, regardless of the degree one might have gotten.</li><li>People don’t realize that being an interviewer entails having a specific set of soft skills, experience, personality, and attitude, not provided by proficiency at a particular activity, technology, or tool.</li></ul><p>In the interview process, the most variable aspect is the person being interviewed, followed by the interviewer. Equally important is the context in which the interview takes place, which can significantly influence the outcome. Surprising to many, the standard tools and artifacts being imposed sit at the bare bottom of that list as the least impactful.</p><p>Why are those bottom-of-the-barrel factors generally the focus when trying to attain a healthy level of consistency and integrity regarding candidate evaluation? Why is the interviewer not considered the principal factor in said quality? This article is aimed at helping distinguish what’s important and where to invest time and effort.</p><p>There are many methodologies and schools of thought regarding the topic, but I’ll take my chances and propose the following guidelines:</p><ul><li>First, one must interview the interviewer to evaluate their proficiency and how well they can transmit the company’s values. It is important to remember that the people being interviewed are evaluating the company, too, and the interviewer is its first reflection.</li><li>Being the best at a particular role doesn’t automatically make someone a good interviewer. While their subject matter expertise is a valuable factor in the interview, it’s insufficient to grant them the role of facilitator. A good practice is to pair them with a proficient interviewer who can lead the meeting, ensuring a more effective and productive interview. The standardization of the interview processes must focus on what is under the interviewer&#39;s control and not the artifacts it is compelled to use. A training program, evaluation process, and internal alignment processes are leagues better than a perfectly formatted spreadsheet of questions.</li><li>The interviewer needs to acknowledge that they are not in a challenge. They do not need to prove themselves better than the people they interview. It is critical to detect the factors that may lead to such behavior during interviewer evaluation. Most of them are rooted in insecurities, which the interviewer must work on, but the help of peers can also improve them. A good leader will aim to surround himself with people better than them; seeking the opposite is a one-way ticket to collective failure.</li><li>One must not dehumanize the interview by bluntly and explicitly following a series of steps that show the beams of an underlying framework. It must be a targeted yet dynamic conversation between people. A good interviewer can weave between congruent interactions an assessment of specific aspects he looks for in the other person without forcing the issue. That is how one better evaluates the individual, not the avatar it tries to convey.</li><li>Finding and evaluating a candidate’s potential is complex and takes time; ironically, I’ve seen it as the least focused aspect of most interviews. One of the most extraordinary qualities of a good interviewer is their ability to find applicable potential in people. Prioritizing the evaluation of raw knowledge, except for very niche roles, is the best way to attract people who are excellent at retaining information and those who are best at preparing for a predefined scenario. The day-to-day is not that.</li><li>Experience must be proven not by tricky questions to ensure the person did this or that but by assessing how that person can extrapolate and apply the alleged experience instead, more so on subjects in which they may not be proficient but remain congruent with those sought in the role. Those are the best scenarios to aim for as they help evaluate vital aspects, such as creativity, resourcefulness, and attitude.</li><li>One of the better techniques for improving the quality of interviewers, closely aligned with everything mentioned above, is mentoring. I cannot emphasize this enough: Proficient interviewers mentoring potential ones can significantly drive a healthy level of quality among the whole population and help them grow considerably.</li></ul><p>Although this article focuses on identifying available and effective potential in people, it is essential to acknowledge that it is not an innate, constant, and fixed property. It is one of the most malleable qualities that we, as an industry, are not taking advantage of or focusing enough on.</p><p>To end the article, let’s remember a profound quote by <strong>Johann Wolfgang von Goethe:</strong></p><blockquote>“Treat people as if they were what they ought to be, and you help them to become what they are capable of being.”</blockquote><p><strong>Interviewers</strong> and <strong>leaders</strong> will be smart enough to follow these words.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca3eac5dd713" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Microservice Design Patterns | Proactive-Reactive]]></title>
            <link>https://medium.com/@mariomesaglio/microservice-design-patterns-proactive-reactive-202210749975?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/202210749975</guid>
            <category><![CDATA[microservices]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[microservices-pattern]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Wed, 12 Jun 2024 18:07:06 GMT</pubDate>
            <atom:updated>2024-06-12T18:19:20.759Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J7AxCvf7KuE0xognkIFMkQ.jpeg" /></figure><p>Different design patterns address <em>desynchronization</em> between microservices in a distributed architecture. Most of them rely on events, untargeted units of information broadcast to an indefinite number of subscribers, where each subscribes to the appropriate events to synchronize the local representation of the foreign entities on which it depends.</p><p>It is quite a challenge not to get oneself caught up in the details but to provide a simple framework to cover the discussion ahead; let’s review the fundamental patterns in which it is often performed:</p><ol><li><strong>Event Notification</strong>: The microservice publishes an event to report that an entity has undergone an update. However, it does not include non-idempotent details about the said update, such as representational changes or state transitions. Nonetheless, it contains enough information to query a separate interface, such as an HTTP API, which provides the needed details. It reduces the risk of desynchronization by forcing subscribers to acquire the latest representational state if required.</li><li><strong>Event-Carried State Transfer</strong>: It entails the same series of actions as above, but additionally, the event has all the information required to understand the update as part of the event contents. It does, therefore, promote desynchronization as the representation and state of the entity described by the event may be inconsistent with their counterparts in the parent microservice at any moment. However, the subscriber can query the separate interface to acquire the latest representational state if higher levels of consistency are needed.</li></ol><p>Note that both are subject to the <strong>Eventual Consistency </strong>concern, regardless of how different <em>desynchronization</em> is addressed.</p><blockquote>For more information about eventual consistency, you can check the following article, which aims to introduce the topic in a simple manner:</blockquote><blockquote><a href="https://medium.com/@mariomesaglio/eventual-consistency-in-short-cf8bfb43bd06">https://medium.com/@mariomesaglio/eventual-consistency-in-short-cf8bfb43bd06</a></blockquote><h3>The Problem</h3><p>Using events as the <strong>only</strong> means for a microservice to synchronize foreign entities owned by other systems, such as microservices, produces a strong dependency on the associated infrastructure and concerns around <em>eventual consistency</em> and <em>desynchronization</em>.</p><p>In turn, these concerns are not commonly addressed, nor are they a priority in the initial phases of a project, which increases the chance of implementing ad-hoc solutions to fulfill data replication requirements.</p><h3>The Solution</h3><p>The microservice implements <strong>Proactive Sourcing</strong> as the <em>default</em> mechanism and <strong>Reactive Sourcing</strong> as a <em>failover</em> mechanism for foreign entity synchronization.</p><ul><li><strong>Proactive Sourcing</strong> synchronizes a foreign entity agnostically by subscribing to the appropriate events.</li><li><strong>Reactive Sourcing</strong> synchronizes a foreign entity on a requirement basis by fetching the latest representation from the system that owns it.</li></ul><p>The <em>failover</em> occurs when trying to fetch the latest representation of a foreign entity and cannot be found or deemed stale. At that point, the conformist microservice retrieves the latest representation from the system that owns it, such as another microservice.</p><p>The whole series of steps described above is entirely transparent for the process that is required of the foreign entity representation in the first place.</p><h3><strong>The Application</strong></h3><p>Implementing a <strong><em>Repository</em></strong> component encapsulating the logic required to access microservice entities, including foreign ones, is beneficial for this pattern, albeit optional. For simplicity and scope of this pattern, the <strong><em>Repository</em></strong> is any component or function that abstracts the business logic and models from the details of how they are persisted.</p><p>To execute the Proactive-Reactive, the <strong><em>Repository</em></strong> is enhanced with the Strategy pattern, where, based on the entity model, the following strategies are followed when an entity is queried:</p><ul><li><strong>Local Model:</strong> The entity representation is fetched from within the microservice runtime environment or self-governed persistence layer. <em>It is considered the default behavior.</em></li><li><strong>Foreign Model: </strong>The <strong>Reactive Sourcing</strong> strategy involves acquiring the latest representation of a foreign entity based on available interface metadata (e.g., API endpoints) and storing or updating it locally.</li></ul><p>As said before, the routine that relies on the <strong><em>Repository</em></strong> to fetch an entity representation remains agnostic to the process above, as it is completely encapsulated within.</p><h3>Benefits</h3><p>Projects can be kicked off with a full-synchronous approach, leveraged by <strong>Reactive Sourcing</strong>, while transitioning to an event-based method, supported by <strong>Proactive Sourcing</strong>, with minimum to no implementation update and no integrity loss in either case.</p><p>The concerns about eventual Consistency are effectively mitigated as there is no critical dependency on the <strong>Proactive Sourcing</strong> to be executed flawlessly before the foreign entity is required. If so, the microservice repository will automatically and transparently perform the <strong>Reactive Sourcing</strong> <em>failover</em>, acquiring the needed representation. Assuming data validation frameworks are in place, covering other similar concerns, such as <em>desynchronization.</em></p><h3>Impacts</h3><p>The <strong><em>Foreign Entity Synchronizer</em></strong> requires additional implementation effort and effectively reduces its parent microservice autonomy by creating dependencies on the foreign entity providers, such as the other microservice APIs. It is important to note that the dependency against the foreign entity model existed beforehand, represented by the <strong>Proactive Sourcing</strong>; the<strong> Reactive Sourcing </strong>couples against a physical aspect of its provider, such as an HTTP API.</p><p>Similar to the <strong>Event Notification</strong> pattern, and especially in the initial stages of a project, burst requests could be caused by <strong>Reactive Sourcing</strong> flowing from the subscriber microservices in cases where a new entity is created in the domain and delays in <strong>Proactive Sourcing</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=202210749975" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Humans are Creators]]></title>
            <link>https://medium.com/@mariomesaglio/ai-is-not-human-5e937eea621e?source=rss-6e14ec0cf032------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e937eea621e</guid>
            <category><![CDATA[culture]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[company]]></category>
            <category><![CDATA[management]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Mario Mesaglio]]></dc:creator>
            <pubDate>Wed, 05 Jun 2024 00:17:15 GMT</pubDate>
            <atom:updated>2025-03-05T20:45:12.453Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJZQ3NUNWwCn78UmJO0dZg.jpeg" /><figcaption>An amazing feat of engineering. Built by <strong>Humans</strong>.</figcaption></figure><p>The concept of AI as an enabler of new capabilities, higher return on investment, and productivity sounds promising, and it should. It is such a powerful tool that it seems almost magical to those not blessed with a strong foundation in data science.</p><p>However, as companies strive to incorporate AI into their ecosystems, it is often implemented into contexts where the human aspect and qualities are disregarded and not given the gravitas they deserve.</p><p>Decision-makers must be mindful of the potential negative impacts of AI integration on the human domain level. For example, it is not uncommon to witness the erosion of creativity, a vital human aspect, by the indiscriminate use of Generative AI, allowing it to take the role of the <strong>creator</strong>.</p><p>At the heart of creativity lies the Latin words “<em>creare,</em>” to create, and “<em>facere,</em>” to make. It&#39;s our innate ability to harness our imagination, experience, and the distinctiveness of each mind to perform a myriad of disciplines, from the graphical arts to spacecraft engineering. This act of <strong>creation</strong> is intrinsically and essentially human.</p><p>We are <strong>creators</strong>.</p><h3>Value</h3><p>Humans describe, judge, and value objects and abstracts in our reality based on various aspects that transcend rationale more often than we admit. We emphasize the value of something based on the person who produced or gave it to us, its origin, or the events that occurred when it was acquired. And what about ourselves? Don’t we feel attached and, sometimes, proud of what we do?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Ss0mDluTHye7_d8rnZH3w.jpeg" /><figcaption>Inspired by a work of art made by a <strong>Human</strong>.</figcaption></figure><p>We decorate our walls with pieces often valued on the story behind them or an association with their author. Music is strongly connected to time, emotions, and people. It would be difficult to grant such values to something produced entirely by Generative AI—not because it can’t make things of similar, or even better, <em>apparent</em> quality, no. But by <em>knowing</em> it was produced that way.</p><p>We must strive to keep what we create <strong>human</strong>.</p><p><strong>Humans</strong> are well known for developing and using tools to create — we’ve been doing it for millennia, bringing us to where we are now as the dominant species. That is what AI is—a <strong>tool</strong>. A very good one at that, but it must remain and be considered as so.</p><p>Does it mean not to use AI? Absolutely not. AI, particularly Generative AI, is an exceptional tool, but it is not a<strong> creator</strong>. Even if it has the capacity to produce things from an amalgam of congruent others, we must not assign AI such a role. It is, and should always be, a tool in the hands of the <strong>human</strong>.</p><p>The way to govern the above is through <strong>discipline</strong>.</p><h3>Discipline</h3><p>Company decision-makers will face the challenge of defining how AI is incorporated into its value chain. By definition, a company’s innate goal is to be more profitable, and AI can, in almost every case, help them in one way or another.</p><p>With such a definite goal, how would the human role of the <strong>creator</strong> described beforehand fit into that decision? What are the consequences of driving people to relinquish, partially or in totality, their innate ability to <strong>create</strong>?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cq808wU4T8bgXiVAys88Eg.jpeg" /><figcaption>A <strong>Human</strong> is making a cocktail of his invention in a London pub, per the patron&#39;s suggestions — a unique creation and projection of himself.</figcaption></figure><p>Factual reasoning will guide us in a brutally rational path we must not let ourselves traverse. We must practice discipline to keep ourselves grounded in our <strong>humanity</strong>. AI must be employed as what it is: a <strong>tool</strong>.</p><p>Discipline is essential for that. It is the responsibility of people to allow others to <strong>create </strong>while<strong> </strong>driving the isolation of AI’s scope to that of the many tools we’ve developed.</p><h3>Solution</h3><p>This article does not provide any. Instead, it aims to express some thoughts on the exponential growth of AI use, how heavily it is advertised, and recognize it as a new trend in which most companies will mindlessly invest capital and effort to adapt — with the risk of neglecting their most valuable asset.</p><p>Their <strong>Humans</strong>. Their <strong>Creators</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e937eea621e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>