<?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 Masoud Chelongar on Medium]]></title>
        <description><![CDATA[Stories by Masoud Chelongar on Medium]]></description>
        <link>https://medium.com/@masoud.chelongar?source=rss-e4def9a40a50------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XeioQaPhVG96nJ3KXzaLag.jpeg</url>
            <title>Stories by Masoud Chelongar on Medium</title>
            <link>https://medium.com/@masoud.chelongar?source=rss-e4def9a40a50------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:03:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@masoud.chelongar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[My Reads, Reflections & Takeaways from Cloud Strategy]]></title>
            <link>https://medium.com/@masoud.chelongar/my-reads-reflections-takeaways-from-cloud-strategy-e42b24ec7dd6?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/e42b24ec7dd6</guid>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[modernization]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Fri, 13 Feb 2026 07:34:47 GMT</pubDate>
            <atom:updated>2026-02-13T07:34:47.284Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*tTyxqDOOaaMq08cuD1pACw.jpeg" /></figure><h3>Introduction</h3><p>Being a cloud migration and transformation software architect, I would often state in <a href="https://chelongar.com/the-systemic-event-discovery-approach-seda/">Software Transformation Series</a>, that the toughest challenges are not only technical. As a matter of fact, they’re strategic, organizational, and cultural. I selected <a href="https://architectelevator.com/book/cloudstrategy/"><strong>Cloud Strategy</strong></a> because I required something beyond cloud provider guides or tooling lessons, which allow me to make strategic decisions in evolving technology landscape. I wanted a richer, experiential insight into how to think about the cloud, not how to use it.</p><p><a href="https://www.linkedin.com/in/ghohpe/">Gregor Hohpe</a> is well known for combining architecture with metaphors and grand-scale thinking. I read this book because it claimed to bridge the gap between technology choices and business outcomes, and deliver street-smart insight from real transformations — not cloud utopias conceptualized in theory.</p><h3>Key Insights</h3><h4>💡Understanding the Cloud Lifestyle</h4><p>This part of <a href="https://architectelevator.com/book/cloudstrategy/"><strong>Cloud Strategy</strong></a> begins by addressing an important topic that is often overlooked during cloud migration and broader transformation efforts..</p><p>What we must always keep in mind during any transformation or migration journey is that it’s not just about modernizing infrastructure or designing new architectures to meet market demands, but it’s also about driving a cultural shift within the company itself.</p><p>The chapter also highlights the difference between <strong>capability</strong> and <strong>benefit</strong>. A cloud feature may offer many capabilities, but this does not automatically mean it delivers value to a specific project or organization. Capability and benefit are not the same, and effective cloud strategy requires selecting tools based on the practical value they provide rather than on their technical potential alone.</p><h4>💡 Cloud-Ready Organization</h4><p>This part focouses how organizations can align themselves with <strong><em>cloud technology</em></strong> and begin their transformation journey. It includes a quote from Mark Birch, Regional Director at Stack Overflow in APAC, highlighting that organizational transformation cannot be copied from elsewhere.</p><p>This section concludes by discussing <strong>enterprise architecture</strong> in the context of cloud adoption and how enterprise architecture evolves during migration to the cloud. After defining the role and purpose of enterprise architecture, the book describes its transformation through several phases as organizations move toward cloud-based operating models.</p><h4>💡 Moving to the Cloud</h4><p>The third part of <a href="https://architectelevator.com/book/cloudstrategy/"><strong>Cloud Strategy</strong></a> focuses on best practices and common pitfalls encountered during the move to the cloud. It highlights the challenges that architects and managers frequently face during cloud transformation and aims to help organizations avoid typical mistakes. This section is structured into seven chapters, each addressing specific risks, lessons learned, and practical guidance for navigating the cloud journey successfully.</p><h4>💡 Architecting the Cloud</h4><p><a href="https://architectelevator.com/book/cloudstrategy/"><strong>Cloud Strategy</strong></a> focuses on architecting for the cloud and is aimed specifically at software architects and cloud architects in part 4. It provides practical guidance on how architectural decisions should be made in a cloud environment. The chapter emphasizes decision models, explaining how structured and well-informed decision-making helps architects manage complexity, balance trade-offs, and design systems that align with both technical and business goals during cloud adoption.</p><p>Introduction to <strong>hybrid</strong> and <strong>multi-cloud</strong> approaches comes first. Hybrid cloud is defined as a combination of cloud and on-premises environments, where workloads are distributed across both. Multi-cloud, in contrast, refers to the use of services from more than one cloud provider.</p><h4>💡 Building for the Cloud</h4><p>In this part <a href="https://architectelevator.com/book/cloudstrategy/"><strong>Cloud Strategy</strong></a> explains how cloud platforms change the way applications are designed, built, and operated. It emphasizes that the cloud is not only an infrastructure change but also an application and architecture shift The section discusses how platforms evolve, how application design becomes more <strong>application-centric</strong> rather than <strong>infrastructure-centric</strong>, and how modern approaches like containers, serverless, and platform tooling influence development and delivery.</p><h4>💡 Embracing the Cloud</h4><p>In the final part of the book, the author discusses the considerations organizations face after fully embracing the cloud following migration. This section focuses on <strong>lessons learned from cloud adoption</strong> and reflects on topics such as cost management, economic impact, efficiency, and long-term operational improvements. It explains how organizations can continue to optimize their cloud usage, balance costs with value, and refine their practices to achieve sustainable benefits from their cloud strategy.</p><h3>Putting It Into Practice</h3><p>In real projects, the most practical value of <a href="https://architectelevator.com/book/cloudstrategy/"><strong>Cloud Strategy</strong></a> is how it helps you turn <strong>we should move to the cloud</strong> into a set of decisions you can actually execute. A good starting point is to translate your cloud strategy into <strong>guiding principles</strong> and decision models that teams can apply daily:</p><ul><li>What do we buy vs build</li><li>What do we standardize vs allow teams to choose</li><li>What does <strong>DONE</strong> mean for security, observability, and resilience.</li></ul><p>This avoids the common failure mode where cloud becomes a collection of tools rather than a coherent operating model.</p><p><strong>Check out the complete </strong><a href="https://chelongar.com/rrt-cloud-strategy/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/chelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*GQVtHWGnUBbrZyjp.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e42b24ec7dd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Operationalizing LLMs — A Practical Guide for Developers & Architects]]></title>
            <link>https://medium.com/@masoud.chelongar/operationalizing-llms-a-practical-guide-for-developers-architects-1d8d8fe5de83?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d8d8fe5de83</guid>
            <category><![CDATA[llmops]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Wed, 28 May 2025 17:11:38 GMT</pubDate>
            <atom:updated>2025-05-28T18:04:46.654Z</atom:updated>
            <content:encoded><![CDATA[<h3>Operationalizing LLMs — A Practical Guide for Developers &amp; Architects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WrjYgGOJnSsdLbdYLO3WMA.png" /></figure><h3>Overview</h3><p><strong>LLMOps</strong>, short for <strong>Large Language Model Operations</strong>, is a growing field that focuses on managing the entire lifecycle of large language models like <a href="https://openai.com/index/gpt-4/">GPT</a>, <a href="https://www.llama.com/">LLaMA</a>, <a href="https://claude.ai/login?returnTo=%2F%3F">Claude</a>, and <a href="https://mistral.ai/">Mistral</a>.</p><p>Think of it as the Generative AI version of MLOps: it brings together best practices from software engineering, DevOps, and machine learning operations, but tailors them specifically to the unique demands of large language models.</p><h3>LLMOps, Benefits &amp; Barriers?</h3><p>Today, we’ve reached a turning point. <strong>Large Language Models</strong>, as the complementary of <a href="https://chelongar.com/small-language-models-intro/">SLMs</a>, are no longer just research projects; they’re now at the core of real-world tools, from customer support and coding assistants to enterprise search and creative writing.</p><p>Without strong <strong>LLMOps</strong> practices in place, companies risk launching AI systems that are fragile, unsafe, or difficult to troubleshoot and that can quickly become costly to operate. But bringing these models into production isn’t simple.</p><ul><li>Unlike traditional machine learning models, which are often static once deployed, <strong>LLMs</strong> need constant fine-tuning, not just of the models themselves, but also of the prompts, data pipelines, and system integrations.</li><li><strong>LLMOps</strong> brings its own set of infrastructure challenges. Running <strong>Large Language Models</strong> in production isn’t as simple as flipping a switch; it often requires massive GPU clusters, low-latency serving, support for multi-modal inputs, and highly parallelized pipelines for both inference and retrieval.</li><li>Last but not least, <strong>LLMOps</strong> is becoming increasingly important as issues like AI governance<a href="https://chelongar.com/llmops-intro/#1df3e2ae-c7b8-4da3-b6dd-49f73c997288">1</a>, privacy, and safety move from <strong>nice to have</strong> to <strong>absolutely essential</strong>.</li></ul><p>Just like CI/CD pipelines revolutionized software development by bringing structure and reliability, <strong>LLMOps</strong> is doing the same for AI. It makes sure it’s deployed responsibly and safely.</p><h3>Developer &amp; Architect Perspectives</h3><p>While traditional ML pipelines mainly focus on training and validating models, <strong>LLMOps</strong> goes a step further. It also prioritizes real-time inference optimization, prompt engineering, and implementing ethical and safety measures, making it better suited for the dynamic nature of language model applications.</p><p>From an<strong> architectural perspective</strong>, a production-ready <strong>LLM</strong> system is made up of 3 key layers working together.</p><ol><li><strong>At the heart of the system is the LLM itself</strong>: This could be an open-source model running on your own infrastructure, like <a href="https://www.llama.com/">LLaMA</a> or <a href="https://mistral.ai/">Mistral</a>, or a commercial model accessed via APIs such as OpenAI’s <a href="https://openai.com/index/gpt-4/">GPT</a>.</li><li><strong>Surrounding the core model is the serving layer</strong>: This layer ensures the system can handle requests efficiently and at scale. Tools like <a href="https://docs.vllm.ai/en/latest/">vLLM</a> or Triton Inference Server are commonly used here. This layer often integrates with RAG systems.</li><li><strong>On top of everything sits the prompt orchestration layer</strong>: It is managed by frameworks like <a href="https://www.langchain.com/">LangChain</a> or <a href="https://www.llamaindex.ai/">LlamaIndex</a>. This part of the stack handles how prompts are built, routed, and executed across your application, helping coordinate complex workflows and ensuring consistent results.</li></ol><p>For <strong>developers</strong>, the workflow in modern AI development looks very different from traditional machine learning. Instead of retraining models from the ground up, the focus is on refining prompts often through few-shot or zero-shot examples to shape how the model responds. This shift has created a need for specialized tools to manage prompt versions, run experiments, and evaluate results.</p><p>Meanwhile, architects are focused on designing systems that can scale with demand while staying cost-effective and compliant. They face key decisions, like whether to use managed API services or run <strong>LLMs</strong> on their own infrastructure with GPUs or inference-optimized run-times.</p><h3>LLMOps Use Cases</h3><p><strong>LLMOps</strong> isn’t just a concept; it’s already driving real-world innovation across industries. From smart chat-bots and automated document workflows to powerful AI copilots, organizations are using large language models to boost efficiency and unlock new possibilities. Here are some of the most impactful use cases, and how <strong>LLMOps</strong> helps bring them to life at scale.</p><h4>AI Customer Support Assistants</h4><p>One of the most common and impactful uses of <strong>Large Language Models</strong> is in automated customer support. Companies like <a href="https://www.zendesk.com/">Zendesk</a> leverage fine-tuned <strong>LLMs</strong> to provide fast, helpful, and context-aware responses in live chat conversations.</p><h4>Retrieval-Augmented Search for Enterprises</h4><p>Enterprise search has taken a major leap forward with the rise of RAG. Technologies like <a href="https://www.llamaindex.ai/">LlamaIndex</a> and <a href="https://www.langchain.com/">LangChain</a> make it possible to fetch relevant documents, enrich prompts with useful context, and generate accurate, natural-sounding responses.</p><h4>Code Generation and Developer Productivity</h4><p>Tools like <a href="https://github.com/copilot">GitHub Copilo</a>t, and <a href="https://docs.aws.amazon.com/codewhisperer/latest/userguide/what-is-cwspr.html">Amazon CodeWhisperer </a>are reshaping the way software is built. These AI assistants can automatically generate code, fix bugs, and suggest improvements.</p><p>Behind the scenes, they rely on fine-tuned models trained on language-specific code datasets. They also use techniques like prompt orchestration to understand the developer’s context.</p><h4>Legal &amp; Contract Analysis</h4><p>Legal teams are increasingly using <strong>LLMs</strong> to streamline their work, summarizing contracts, identifying potentially risky clauses, and extracting key terms. Some startups offer AI copilots tailored for law firms and enterprises.</p><p><strong>Check out the complete </strong><a href="https://chelongar.com/llmops-intro/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/chelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nO9f2ipKIldTPur2qXwW-Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d8d8fe5de83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SBOM and Why It Matters — A Practical Guide for Software Architects]]></title>
            <link>https://medium.com/@masoud.chelongar/sbom-and-why-it-matters-a-practical-guide-for-software-architects-de3841124390?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/de3841124390</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-security]]></category>
            <category><![CDATA[software-bill-of-material]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[sbom]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Fri, 02 May 2025 07:51:24 GMT</pubDate>
            <atom:updated>2025-05-28T18:05:54.033Z</atom:updated>
            <content:encoded><![CDATA[<h3>SBOM and Why It Matters — A Practical Guide for Software Architects</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-TpxW5waDM8VnGM4" /><figcaption>Photo by <a href="https://unsplash.com/@flyd2069?utm_source=medium&amp;utm_medium=referral">FlyD</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>In today’s fast-moving world of software development, applications aren’t built from scratch anymore. They’re assembled. We stitch them together using combination of open-source libraries, third-party services, container images, and proprietary code.</p><p>As software architects, we’re no longer just system designers, we’re<a href="https://chelongar.com/systems-thinking-a-dynamic-systems-exploration-for-strategic-software-transformation/"> ecosystem</a> curators. And with that role comes a growing responsibility: to truly understand everything that goes into the software we build.</p><p>What was once a niche practice has now become a strategic priority, fueled by headline-grabbing security breaches, mounting regulatory demands, and the growing complexity of today’s software systems.</p><p>In this guide, we’ll take a hands-on, architecture-oriented look at <strong>Software Bill of Materials</strong> (<strong>SBOM</strong>).</p><h3>What Is SBOM?</h3><p>A <strong>Software Bill of Materials</strong> is essentially a detailed inventory of all the components that make up a software application. It lists things like the name, version, supplier, and license of each component, as well as how they all connect. Whether you’re working on a simple microservice or a large-scale enterprise platform, chances are your application relies on dozens, if not hundreds, of third-party components. And each one can introduce its own potential risks.</p><p>If a vulnerability is found in a library or it’s time for a license audit, an <strong>SBOM</strong> shows you exactly what you’re using and where. So, you’re never left guessing.</p><h3>SBOM in Practice</h3><p>Imagine a new vulnerability just made the headlines. Without an <strong>SBOM</strong>, you’re stuck digging through code-bases and Dockerfiles, trying to figure out if you’re at risk. But with a solid <strong>SBOM</strong> in place, you can simply query it and get your answer in minutes, rater than days.</p><p>In fact, <strong>SBOMs</strong> aren’t just useful for post-incident analysis; they’re becoming a key part of proactive system architecture, particularly in areas like:</p><ul><li>Secure Software Development Life Cycles (SDLCs)</li><li>Incident response playbooks</li><li>DevSecOps pipelines</li><li>Regulatory audits</li></ul><h3>How to Generate an SBOM</h3><p>Understanding what an <strong>SBOM</strong> is, and why it matters, is just the beginning. As an architect or a developer, we also need to think about how to build systems that generate and maintain them automatically.</p><p>So let’s dive into some practical tools and strategies for integrating <strong>SBOM</strong> generation into your build and deployment workflows.</p><ul><li><a href="https://github.com/anchore/syft"><strong>Syft</strong></a>: It is best solution for containers and language packages. It supports both <a href="https://cyclonedx.org/">CycloneDX</a> and <a href="https://spdx.dev/">SPDX</a> formats.</li><li><a href="https://trivy.dev/latest/"><strong>Trivy</strong></a>: It offers vulnerability scanning and <strong>SBOM</strong> too. It supports both <a href="https://cyclonedx.org/">CycloneDX</a> and <a href="https://spdx.dev/">SPDX</a> formats.</li><li><a href="https://fossa.com/solutions/sbom-management/"><strong>FOSSA</strong></a>: It is best solution for license compliance and integration to CI. It supports <a href="https://spdx.dev/">SPDX</a> and custom formats.</li><li><a href="https://snyk.io/blog/creating-sboms-snyk-cli/"><strong>Snyk</strong></a>: It offers Vulnerability detection and reporting. Furthermore, It supports both <a href="https://cyclonedx.org/">CycloneDX</a> and <a href="https://spdx.dev/">SPDX</a> formats.</li></ul><p><strong>Check out the complete </strong><a href="https://chelongar.com/sbomintro/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/chelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nO9f2ipKIldTPur2qXwW-Q.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=de3841124390" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Small Language Models — An Architect’s Perspective]]></title>
            <link>https://medium.com/@masoud.chelongar/small-language-models-an-architects-perspective-1b029921a5d0?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b029921a5d0</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[small-language-model]]></category>
            <category><![CDATA[large-language-models]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Thu, 01 May 2025 16:20:13 GMT</pubDate>
            <atom:updated>2025-05-01T16:22:51.859Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*y8mn6wthUQby7GAx" /><figcaption>Photo by <a href="https://unsplash.com/@krzhck?utm_source=medium&amp;utm_medium=referral">YH Zhou</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Small Language Models — An Architect’s Perspective</h3><p><strong>Small Language Models</strong> (<strong>SLMs</strong>) are streamlined versions of large language models or LLMs like <a href="https://openai.com/index/gpt-4/">GPT-4</a>. With fewer parameters under the hood, they’re faster, more affordable, and easier to run, especially on devices with limited computing power like smartphones or edge devices. While they don’t pack the same punch as full-scale LLMs, <strong>SLMs</strong> shine in focused tasks like text classification, summarization, or powering chatbots, where heavyweight models might be overkill.</p><blockquote><em>A </em><strong><em>Small Language Models</em></strong><em> is a </em>Generative AI<em> technology similar to a large language model but with a significantly reduced size. In general, LLMs are generalists and </em><strong><em>SLMs</em></strong><em> are specialists.</em></blockquote><blockquote><em>— </em><a href="https://www.techtarget.com/whatis/definition/small-language-model-SLM">Small Language Models</a>, <a href="https://www.techtarget.com/contributor/Sean-M-Kerner">Sean Michael Kerner</a></blockquote><p>In this blog post, we’ll take a closer look at what <strong>SLMs</strong> are, explore their practical use cases, and weigh their pros and cons.</p><h3>The Shift Toward Smaller Models</h3><p>Over the past few years, LLMs like <a href="https://openai.com/index/gpt-4/">GPT-4</a> have completely changed the way we think about integrating AI into software. But now that the initial hype is dying down and we’re getting into the real work of building, a lot of teams are realizing something important: not every use case needs the power and cost of a massive model.</p><p>That’s where <strong>Small Language Models</strong> come into play.</p><p><strong>SLMs</strong> are lightweight and efficient, designed to handle specific tasks with impressive performance. They may not have the broad capabilities or deep reasoning skills of larger models, but their <strong>speed</strong>, <strong>portability</strong>, and <strong>privacy benefits</strong> make them an increasingly practical choice for real-world use.</p><h3>Anatomy of an SLM</h3><p>To build effectively with <strong>Small Language Models</strong>, developers and architects need to understand what actually makes a model <strong><em>small</em></strong>. From an architect’s perspective, building with <strong>SLMs</strong> is all about navigating trade-offs thoughtfully and strategically. It’s not just about having fewer parameters; it’s about making smart, intentional decisions around <a href="https://en.wikipedia.org/wiki/Non-functional_requirement"><em>non-functional requirements</em></a>.</p><p><strong>SLMs</strong> have four key characteristics, which are outlined below:</p><ul><li><strong>Smaller Model Size:</strong> Usually under 1 billion parameters in <strong>SLMs</strong>, compared to the 7 billion (or more) found in most <a href="https://en.wikipedia.org/wiki/Mistral_AI?utm_source=chatgpt.com"><em>large language models</em></a>.</li><li><strong>Lightweight and Efficient:</strong> Designed to run smoothly on everyday hardware; think consumer GPUs, mobile devices, or even standard CPUs.</li><li><strong>Fast and Optimized:</strong> Built for quick responses, especially when compressed to 8-bit or <a href="https://arxiv.org/html/2402.16775v1?utm_source=chatgpt.com">4-bit formats</a>.</li><li><strong>Purpose-Built:</strong> Typically fine-tuned for specific tasks like <em>classification</em>, <em>summarization</em>, or <em>intent detection</em>, rather than broad, open-ended reasoning.</li></ul><h3>Architecting with SLMs</h3><p>Once we understand where <strong>Small Language Models</strong> (<strong>SLMs</strong>) fit in, the next challenge is figuring out how to integrate them effectively into modern software architectures. <strong>SLMs</strong> are reshaping how we think about model serving, scalability, and the overall developer experience.</p><p>Here’s a breakdown three of key architectural considerations.</p><h4>Deployment Strategies</h4><p><strong>On-Device Deployment</strong> is a deployment strategy that uses <strong>SLMs</strong>. It involves deploying models directly onto devices like smartphones, IoT hardware, or desktop computers, for example, running <a href="https://huggingface.co/docs/transformers/model_doc/mobilebert">MobileBERT</a> within a mobile app. This approach is especially valuable for applications that prioritize privacy or even need to function without an internet connection.</p><h4>Tooling and Frameworks</h4><p>To achieve efficient and production-ready deployment of <strong>Small Language Models</strong> (<strong>SLMs</strong>), several tools and frameworks are available, each serving a specific purpose:</p><ul><li><a href="https://huggingface.co/docs/transformers/en/index">Hugging Face Transformers</a> is widely used for fine-tuning, loading, and serving pre-trained <strong>SLMs</strong>, making it a go-to library for many developers.</li><li><a href="https://onnxruntime.ai/">ONNX Runtime</a> enables high-speed inference and supports multiple hardware platforms, which is essential for scalable deployment.</li></ul><h3>Wrapping Up</h3><p>As language models become a core part of modern software stacks, <strong>Small Language Models</strong> (<strong>SLMs</strong>) are emerging as a practical, powerful alternative to their larger counterparts.</p><p><strong>SLMs</strong> can now be treated as first-class components, deployed as microservices, embedded in client apps, or combined with LLMs in layered, hybrid architectures.</p><p><strong>Check out the complete </strong><a href="https://chelongar.com/small-language-models-intro/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/chelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a><strong><em>.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/1*XfMA6X57_sZzI2oBufN_5A.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b029921a5d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Event-Driven Architecture — Everything Worth Knowing]]></title>
            <link>https://medium.com/@masoud.chelongar/event-driven-architecture-everything-worth-knowing-5a6612826987?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a6612826987</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[domain-driven-design]]></category>
            <category><![CDATA[event-driven-architecture]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Sun, 13 Oct 2024 19:29:14 GMT</pubDate>
            <atom:updated>2025-04-23T17:32:39.445Z</atom:updated>
            <content:encoded><![CDATA[<h3>Event-Driven Architecture — Everything Worth Knowing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ExQ6V2w5BoB7C9fd" /><figcaption>Photo by <a href="https://unsplash.com/@mediamodifier?utm_source=medium&amp;utm_medium=referral">Mediamodifier</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p><strong>Event-Driven Architecture </strong>or <strong>EDA</strong> is one of the most popular and attractive distributed software architectural pattern. There are many reasons to make it the first or even the best option when we want to choose an architecture style for our project.</p><p>The main reason to opt it would be variety of non-functional requirements that <strong>EDA </strong>offers to developers, like <em>scalability</em>, <em>modularity</em>, <em>high performance</em> and <em>fault tolerance</em>. Beside mentioned advantages of EDA, there are some features such as <em>implementation, testing </em>and <em>error handling </em>in distributed systems which could be challenging because of architecture complexity.</p><p>Furthermore, since events play a central role in Event-Driven Architecture, they streamline and standardize communication among software components. This aspect can persuade architects to adopt EDA as a complement to microservices architecture.</p><p>Moreover, its great compatibility and relevancy with <a href="https://medium.com/@masoud.chelongar/domain-driven-design-9ae2b0094cac">Domain-Driven Design</a> could be the other reason for popularity of this architectural style.</p><p>But, what is exactly an <strong>Event-Driven Architecture</strong>? Strictly speaking, it provides East-West (horizontal) communication pattern between software services and application components via <em>asynchronous</em> <em>communication </em>through <em>events</em>.</p><blockquote>From <a href="https://en.wikipedia.org/wiki/Event-driven_architecture">Wikipedia</a>:</blockquote><blockquote>Event-driven architecture (EDA) is a software architecture paradigm promoting the production, detection, consumption of, and reaction to events.</blockquote><h3><strong>Event-Driven Architecture </strong>Building Blocks</h3><p>Investigating, interpreting and assessing about specific architectural pattern and its elements and basics has been always an interesting topic in software engineering. In regard to variety of customer requirements and various business constraints, we can employ the same architectural pattern to prototype, finalize and build different products.</p><p>The modern <strong>Event-Driven Architecture</strong>, in general and regardless of requested -<em>ilities</em> , can be characterized with 3 <em>main </em>fundamental elements or pillars.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*7aKaaPF-S2ya_SV3VMmDUw.png" /><figcaption><strong>Event-Driven Architecture Fundamental Elements</strong></figcaption></figure><h4>→ Event</h4><p>As it is recognizable from the <strong>EDA </strong>name, <strong>events </strong>are the key components of the <strong>Event-Driven Architecture</strong>. They describe <em>changes </em>in business domains that are named also <em>notifications. </em>In essence, <strong>events </strong>are the tangible manifestations of both anticipated and unforeseen changes in the states of the various components that make up a software system.</p><h4>→ Event Processor</h4><p>Each building block in software, that is implemented to handle a part of business logic in code-base and participates in the service delivery and software development lifecycle, can play a role as an <strong>event processor</strong>. They can act as event consumer and/or event producer.</p><p><strong>Event processors</strong> can have various architectures and designs, such as coarse-grained stand-alone monolithic software consists of components and database to perform multiple jobs or fine-grained services that are designed to accomplish only one task. But the most popular pattern, that nowadays is known as the best practice, is <em>microservices </em>pattern.</p><p><em>Event-Driven microservices architecture</em> is the <em>compound </em>architecture that <strong>processors </strong>are defined as<em> fine-grained standalone services</em> and communicate with each other by sending and receiving events asynchronously.</p><h4>→ Message Broker</h4><p>Broker is the third pillar of Event-Driven Architecture. It is responsible to deliver events to the consumers. In other words, it takes messages from processors (producers) and deliver them to the other(s) building blocks based on event destination and channel type. The biggest advantage of <strong>message brokers</strong> is the possibility of <em>decoupling </em>services from each other, <em>temporally </em>and <em>functionally</em>.</p><p>When one service needs to wait for another event processor or be executed before it, they’re temporally coupled.</p><p>Functional coupling happens when an event processor is calling a function or module from the other event processor. This kind of coupling can easily lead to a mess, <em>distributed big ball of mud</em>.</p><p>Moreover, using <em>asynchronous communication</em> style, that is offered by such message brokers like <a href="https://kafka.apache.org/"><em>Kafka</em> </a>and <a href="https://www.rabbitmq.com/"><em>RabbitMQ</em></a>, provides continuous integration and technology agnostic protocol communication between software building blocks in general and between services in microservices architecture and EDA approach.</p><p>To gain a better understanding and more thorough insight into <strong>message brokers</strong>, refer to the <em>Brokers &amp; Queues — Comparison &amp; Contrast in Messaging.</em></p><h3>Differences &amp; Similarities</h3><p>Beside <strong>Event-Driven Architecture</strong>,<em> Message-Driven Architecture (MDA), Data-Driven Architecture </em>and <em>Microservices Architecture</em> are the other options that may be chosen by architects, based on the <strong>business logic</strong> and <strong>software</strong> <strong>requirements</strong>, to implement and deploy distributed systems.</p><p>In this section we’re going to take a look at similarities and differences between <strong>EDA </strong>and the 3 other architectural paradigms.</p><h4>EDA vs. Data-Driven Architecture</h4><p>The main difference between <strong>EDA </strong>and <strong>Data-Driven Architecture (DDA) </strong>is the way of applying, controlling and changing policies and rules that build and define business logic.</p><p>In the realm of <strong>EDA</strong>, the business logic is embedded within the code base (source code). Whereas in <strong>DDA</strong>, it resides within the data and code does not deal with domain logic at all. Furthermore, in <strong>DDA </strong>changing data results altering business logic but in <strong>EDA</strong>,<strong> </strong>events and their contents consequence the variations in business logic.</p><h4>EDA vs. Message-Driven Architecture</h4><p>As a matter of fact, <em>events </em>are subset of <em>messages</em>, both are responsible to provide some information for consumers, and you can think of <strong>Event-Driven Architecture (EDA)</strong> as a part of Message-Driven Architecture (MDA). However, the main difference between EDA and MDA<strong> </strong>lies in how we define what an <em>event </em>and a <em>message </em>are.</p><p>Events often get triggered regarding changes in any part of a system, such as data and state. On the contrary, messages are the description of commands that should be executed by service.</p><p>In the context of Burger-Best, when applying the EventStorming technique for business modeling, it becomes evident that this approach seamlessly blends event-based and message-based methodologies to meet the needs and requirements of certain domains.</p><p>For instance in kitchen domain, consider the journey of an order (hamburger(s)) from the moment it is prepared in the kitchen until it is handed over to the delivery department (another business domain), two distinct communication patterns come into play: the message-driven pattern and the event-driven pattern:</p><p>➊ <strong>MDA</strong>: A command is triggered by the chef as an actor to describe finalizing cooking process. The consequence is an <em>event</em> that illustrates the outcome of finalizing command.</p><p>➋ <strong>EDA</strong>: The generated <em>event</em> is going to be resulted to pack the order(s). When the orders are packed, a new <em>event </em>will be published to inform delivery domain.</p><p>The other characteristic that helps us to differentiate these two architectural paradigm is the location that message/event should be delivered. The destination of message in <strong>MDA </strong>is predefined and it is similar to function call but an events tin <strong>EDA </strong>could be received by any consumer.</p><h4>EDA vs. Microservices Architecture</h4><p>Basically, <strong>EDA </strong>cannot serve as a replacement for <strong>microservices architecture</strong> since they cater to distinct purposes and fundamentally pursue different objectives. To put it differently, drawing a comparison between them is similar to <em>comparing oranges and apples</em>.</p><p>Event processors or services within an <strong>EDA </strong>can vary in size and accommodate different sets of responsibilities as dictated by business definitions and requirements. In contrast, Microservices strictly adhere to the Single Responsibility Principle (SRP), with each service being stand-alone. This underscores that <em>service granularity</em> stands out as a fundamental aspect distinguishing <strong>EDA </strong>from microservices.</p><p>Another aspect that may be regarded as a significant distinction between <strong>EDA </strong>and microservices architecture pertains to <em>data granularity, database schema, and, in essence, the overall handling of data</em>. Each microservice operates with its own separate database, distinct from those of other services. In contrast, within the <strong>Event-Driven Architecture (EDA)</strong>, there is a single database schema that all services can access to retrieve or modify data and information.</p><p>To put it accurately, <strong>EDA </strong>data is characterized by a lower level of granularity or is coarse-grained, whereas microservices architecture exhibits a fine-grained data.</p><h3>Exploring Varieties of Event-Driven Architecture</h3><p><strong>Event-Driven Architecture</strong> can be primarily categorized into two main approaches or topologies:</p><ol><li>Choreography</li><li>Orchestration</li></ol><p>Each approach has its advantages and disadvantages. So it’s crucial to think about which one suits the distributed architecture style best. This decision should be based on factors such as the domain, business needs, and software requirements (functional and non-functional).</p><p>Let’s delve into a detailed exploration of both styles to gain a thorough, comprehensive and precise understanding of them.</p><h4>➀ Choreography Architecture</h4><p>In software business, the EDA <strong>choreography architecture</strong> is also known as broker topology. The name itself, choreography, makes it clear that each software component or service acts interdependently without any conducting to accomplish its responsibilities as part of system.</p><p>In our daily life, this term typically evokes images of group dancing like ballet. And clearly, it is exactly our expectation from choreography architecture in software world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*cFqR6OQDnF7Fkpni-9zfmQ.png" /><figcaption><strong>EDA Choreography Architecture</strong></figcaption></figure><p>The diagram presented above illustrates a simple primitive E-commerce application that is based on <em>broker EDA</em>, where components are totally decouple from each other and <a href="https://www.rabbitmq.com/"><em>RabbitMQ</em></a><em> </em>is acting as the event router and controller or message broker.</p><h4>➁ Orchestration Architecture</h4><p>This variant of event-driven architectural paradigm, in contrast to the broker architecture and as implied by its nomenclature, <strong>orchestration architecture</strong>, comprises services and components orchestrated and managed by a <em>designated component</em>. This specific component, that acts as controller, is responsible to process, manage and route events to the other services or in general consumers. In some product, it could be referred to as the control plane.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/918/1*6oj8c9xISZ1xsUq_wqFGeA.png" /><figcaption><strong>EDA Orchestration Architecture</strong></figcaption></figure><p>The diagram you see represents our E-commerce system we talked about earlier. In this system, RabbitMQ serves as an orchestrator, working like a mediator in Event-Driven Architecture (EDA). The other name for this architectural paradigm is <em>Mediator EDA</em>.</p><h3>Event-Driven Architecture Use Cases</h3><p>As mentioned earlier, EDA is a widely used architectural style in various businesses and industries. Let’s explore some <strong>use cases</strong> together.</p><h4><strong>→ Fraud Detection</strong></h4><p>It is a process of detecting and preventing fraudulent behavior and malicious activities which aim to identity and/or information theft, cyber attack or financial fraud that EDA is a well-suited methodology for such complex and business-critical use case.</p><p>For instance to block fraudulent activities like money laundering in the telecom industry, we can employ Event-Driven Architecture (EDA) in primitive and simple format combined with rules-engine as logic layer to analyse the received events (transactions). Alternatively we could implement more advanced approach that uses supervised and/or unsupervised machine learning algorithms to detect outliers from reported events.</p><h4><strong>→ E-commerce</strong></h4><p>Buying and selling everything online such as service and goods, known as e-commerce, whether it’s business-to-business (B2B), business-to-consumer (B2C) online payment, digital marketing and etc, involves many data transaction that are recognized as events. To effectively handle and manage of these events (both received and sent), Event-Driven Architecture (EDA) is the widely used approach in this industry.</p><h4><strong>→ Internet of Things (IoT)</strong></h4><p>This definition refers to interconnected embedded devices, which are known as things, that are spread worldwide and communicating via internet. Communication things with central server, orchestrator, or other devices through events. The management and analyzing of these events is handled by a large-scale Event-Driven Architecture (EDA) software.</p><p>The connected car stands out as the most well-known example, where every component communicates, reports, and provides feedback to a central server that continuously monitors the car’s health.</p><h3>Wrapping Up</h3><p>In the present era, where things are becoming increasingly intricate and our daily lives are dominated by devices that communicate with each other, it is essential for every software developer and software architect to grasp the skills required to overcome this complexity.</p><p>Using <strong>Event-Driven Architecture</strong>, especially when it is combined with other approaches like microservices, is a commonly used pattern and let’s say Best-Practice to tackle the challenges of today’s complex needs and come up with practical solutions to meet customer requirements.</p><h3>Suggested Readings</h3><p>📌 <a href="https://www.amazon.de/-/en/Vladik-Khononov/dp/1098100131/ref=sr_1_2?keywords=domaindriven+design&amp;qid=1668154024&amp;sprefix=doma%2Caps%2C167&amp;sr=8-2">Learning Domain-Driven Design</a>, By: <a href="https://twitter.com/vladikk">Vlad Khononov</a></p><p>📌 <a href="https://www.amazon.de/-/en/Neal-Ford/dp/1492043451/ref=tmm_pap_swatch_0?_encoding=UTF8&amp;qid=1678193735&amp;sr=8-4">Fundamentals of Software Architecture</a>, By: <a href="https://developertoarchitect.com/">Mark Richards</a>, <a href="https://twitter.com/neal4d">Neal Ford</a></p><p><strong>Check out the complete </strong><a href="https://chelongar.com/event-driven-architecture-everything-worth-knowing/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/chelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a6612826987" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brokers & Queues]]></title>
            <link>https://medium.com/@masoud.chelongar/brokers-queues-2acf7b760956?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/2acf7b760956</guid>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[rabbitmq]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[kafka]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Fri, 11 Oct 2024 21:03:10 GMT</pubDate>
            <atom:updated>2025-04-23T19:27:47.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lLJ5yr8ZX5e01nHc" /><figcaption>Photo by <a href="https://unsplash.com/@yannikm?utm_source=medium&amp;utm_medium=referral">Yannik Mika</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>It is around a decade that many firms , because of complexity in business , tight competition with competitors and emerging new technology stacks like cloud-computing, were migrated or still are moving their software and/or systems to the distributed architectures like microservices or event-driven architecture.</p><p>But whenever we want to design a distributed system and complex software consists of many stand-alone independent parts, the initial consideration is typically how these components and services communicate with each other efficiently? How do they inform other parts about what the service is currently doing? How to inform system about applied changes and/or failures in services? How to send a message to a component to ask for specific information or command a service to perform a task?</p><p>To address all those questions, we need to grasp how <strong>queues</strong> and <strong>brokers</strong> work differently and understand their functionalities to figure out the messaging best-practice in distributed systems. Furthermore, we’ll explore the most widely used technologies related to these subjects.</p><h3>Message</h3><p>Before we jump into defining <strong>queues </strong>and <strong>brokers</strong>, it’s important to grasp a fundamental element that’s essential for both: <strong>message</strong>. Without understanding it, these concepts won’t make much sense and will be kind of deadhead.</p><blockquote>A <strong>message</strong> is a discrete unit of communication intended by the source for consumption by some recipient or group of recipients.</blockquote><blockquote>— <a href="https://en.wikipedia.org/wiki/Message">Wikipedia</a></blockquote><p>Based on the message definition provided, each message, that is small unit of data, needs to be sent by a sender (producer) and then utilized or received by a receiver, also known as a consumer.</p><h3>Message Queue</h3><p>In computer science and specifically in distributed systems, message queues are defined as <em>communication tool</em> that connect different components or services to exchange messages <em>asynchronously</em>. Another way to describe a message queue is as <em>container</em> which provide a reliable storage for our information, that consists of chunks of data, to transmit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*C0qvEv21b7rKi6COnSS_sQ.png" /><figcaption><strong>Message Queue — FIFO</strong></figcaption></figure><p>Message queues work on a<em> first-in-first-out </em>basis or <em>FIFO</em> to deliver messages. Put simply, the first entered message to the queue would be delivered first. On the other words, queues make sure that messages are delivered in the order they were entered and this order is guaranteed to be kept.</p><p>Furthermore, they assist architects to design a system with decoupled services which are independent from each other. They even can store sent messages until they’re successfully delivered to the recipient, which supports resiliency feature as well.</p><h3>Message Broker</h3><p>In contrary of queues, message brokers are stand-alone application or service in software ecosystem to facilitate communication between components, services and applications within distributed systems. In simple terms, they are independent software that act as middleware and sit between producer and consumer.</p><p>When applications and services interact through a message broker, they communicate without knowledge of each others. This implies a high degree of independence, where modifications and changes in one of the services do not affect other components. The only connection point between them is the message (event) paradigm, which is both inevitable and, importantly, insignificant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*r1y3Ad7h5Gx_T7hycMfrpw.png" /><figcaption><strong>Message Broker</strong></figcaption></figure><p>In addition to their remarkable benefits, such as improving reliability, facilitating deployability and offering loosely components, brokers also come with a couple of downsides that we t examine three significant disadvantages here.</p><p><strong>→ Increasing Architecture Complexity</strong>: It is the most considerable drawback of brokers which involves introducing an extra layer of complexity to the system, because they need configuration as well as maintenance and resource management.</p><p><strong>→ Single Point of Failure</strong>: In distributed systems, message brokers play a crucial role as they are the (most probably) only service or application responsible for handling communication between different components. If a message broker fails, it will lead to a breakdown in communication between components. The worst-case scenario is complete system failure.</p><p><strong>→ Security</strong>: Another issue to consider when using message brokers is security. This involves potential problems like unauthorized access, message tampering, and vulnerabilities in the message broker software.</p><p>With this foundational understanding of brokers in mind, let’s delve into advantages and disadvantages of most popular message brokers available in market in the upcoming section.</p><h3>Comparison &amp; Contrast</h3><p>Selecting the right broker, for our software, can be tricky. We need a broker that meets the business requirements without imposing unnecessary complications to the system. In the market, we have various choices, including cloud-native and on-premise, as well as open-source and commercial options.</p><p>In this section, we will look at the similarities and differences among various brokers and delve into the different use-cases or scenarios that each one is suited for.</p><h4>RabbitMQ</h4><p>RabbitMQ is a widely used message broker that enables different parts of a distributed system to communicate with each other asynchronously. <br>In addition to the features discussed earlier for brokers, RabbitMQ also excels in load balancing and distributing traffic among services, making it a robust choice in these aspects.</p><p>Additionally, it is employed in crafting Event-Driven Architecture, as well as in the Internet of Things (IoT) and in general, distributed systems. Such software typically comprise numerous components and services, emphasizing the need for high cohesion and low coupling between them.</p><p>Let’s delve into some of the key features of RabbitMQ that architects and developers should weigh when choosing a messaging broker for their product.</p><p><strong>→ Messaging Paradigm</strong>: It uses the <em>Advanced Message Queuing Protocol (AMQP)</em> to enable communication among components and provides both publish/subscribe and point-to-point messaging paradigm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*6-qZtFRtwXq-c6_zLVQYEQ.png" /><figcaption>RabbitMQ Architecture</figcaption></figure><p><strong>→ Architecture</strong>: RabbitMQ architecture consists of two main aspects. First, there’s the Exchange, which handles the job of routing messages to specific queues based on a predefined binding key. Second, there’s the Queue, which we’ve already discussed in detail earlier.</p><p>It provides us with the flexibility to select from various exchange types — <em>direct, topic, fanout, and headers</em> — according to the routing logic in services and follows pub/sub model. In addition to exchanges, RabbitMQ also supports <em>Remote Procedural Call (RPC)</em>, enabling point-to-point messaging.</p><p><strong>→ Scalability</strong>: Typically, it can be scaled vertically. This implies that additional resources need to be incorporated to increase the capacity of the broker. This is crucial in large scale distributed software, where scalability can vary for different services at different times.</p><p><strong>→ Latency</strong>: In fact, RabbitMQ is designed to deliver messages with lowest possible level of latency. But some factors, such as message size, network latency, message persistency and serialization/deserialization of messages, can have a notable negative impact on latency.</p><p><strong>→ Durability</strong>: In simple terms, RabbitMQ gives us the ability to create a robust and reliable system. This is achieved by setting up both <em>queues </em>and <em>exchanges </em>in durable mode<em> </em>that supports message persistency.</p><pre># Durable declaration queue in python<br>channel.queue_declare(queue=&#39;durableQueue&#39;, durable=True)<br><br># Durable Exchange declaration in python<br>channel.exchange_declare(exchange=&#39;durableExchange&#39;, exchange_type=&#39;direct&#39;, durable=True)</pre><p>However, it’s important to note that it is not free of charge and we have to consider a trade-off between this feature and system performance. To ensure messages are stored persistently, they have to be written to the disk, which can impact overall system performance.</p><p><strong>→ Use Cases</strong>: RabbitMQ is a great choice for handling messages between different parts of a microservices architecture and event-driven architecture. Additionally, it acts as mediator or task distributor in orchestrator EDA.</p><h4>Apace Kafka</h4><p>Today, when it comes to handling real-time data in distributed systems, <strong>Apache Kafka</strong> is considered the top choice among business owners, architects and developers. Apache kafka, which is developed by LinkedIn, is used as a <em>distributed streaming platform</em> and <em>publish/subscribe messaging system,</em> that relies on <em>Kafka broker</em> as the central hub for distributing and delivering messages.</p><p>In addition to the features mentioned earlier for brokers, apache kafka is designed to be <em>fault tolerant</em>, capable of being<em> high-throughput</em>, <em>scalable </em>and with<em> low latency</em> in delivering data.</p><p>Let’s explore some important aspects of Apache Kafka that we need to consider when deciding on a broker for our product.</p><p><strong>→ Messaging Paradigm</strong>: Apache kafka is fundamentally based on distributed message log that underlies its architecture and messaging paradigm. distributed message log refers to the data structure where messages are stored, ordered, and persisted across multiple nodes in a distributed system.</p><p><strong>→ Architecture</strong>: The Apache Kafka architecture would be defined in 2 different style since version 2.8.0 which it moved from <em>zookeeper</em> controller to <em>quorum-based</em> controller from which allows it to manage its metadata internally by brokers.</p><p>In zookeeper-based architecture, the Kafka cluster is made up of <strong>5+1</strong> main components or fundamental concepts. <em>Brokers</em> are at the core of the cluster, while <em>producers</em>, <em>consumers</em>, <em>topics</em>, and <em>partitions</em> form the other essential elements. Above these components in traditional architecture (Version 2.8.8 and earlier) sits <em>Zookeeper</em>, which oversees and organizes all aspects of the cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*QdTznESzdzEmn73mgbWTeg.png" /><figcaption><strong>Zookeeper-based Kafka Cluster</strong></figcaption></figure><p>Let’s explore each of these components and understand how they work in more detail.</p><p>✸ <strong>Zookeeper</strong>: This part is mainly used for managing tasks related to coordinating cluster such as member detection and leader/follower election. Furthermore, it is responsible for maintaining information about brokers and keeping track of detailed information about consumers and producers as well.</p><p>Additionally, Zookeeper is responsible for overseeing and storing <em>vital information </em>(metadata) regarding the Kafka cluster. This includes general configuration of brokers and topics setting and assignment of partitions.</p><blockquote>We’ve provided a brief description of zookeeper because in the newer Kafka architecture, it’s already been replaced by KRaft and won’t be included in Apache Kafka starting from version 4.x.</blockquote><p>✸ <strong>Producers</strong>: They are applications or services whose primary role of them is sending or publishing data (information) to Kafka brokers , where it will be stored in topics.</p><p>In terms of how communication works between Kafka brokers and producers, they will be sending messages to topics <em>asynchronously</em>. This means they’ll be doing it in a way where they don’t have to wait for each message to be acknowledged before sending the next one.</p><p>✸ <strong>Consumers</strong>: Consumers, much like producers, refer to applications, services, or processes whose main purpose is pulling messages or data written by producers from topics.</p><p>From the perspective of communication between them and brokers, it will happen in an asynchronous manner, similar to how producer communicates with brokers.</p><p>✸ <strong>Brokers</strong>: Think of them as the core building blocks of a Kafka cluster, distributed across several servers. In simpler terms, they make up the Kafka cluster. Each of these brokers, also referred to as nodes, has its own unique identifier (numeric ID), essentially acting as the heart of the Kafka cluster (as briefly mentioned).</p><p>✸ <strong>Topics</strong>: They are logical channels that is used to organize and classify the the messages within a Apache Kafka cluster which divided to the partitions. Strictly speaking, a topic is a group or category that collects messages from producers and delivers them to consumers.</p><p>✸ <strong>Partitions</strong>: Apache Kafka achieves scalability and parallelism through partitions, which combine to form a topic. Furthermore, these partitions are essential for Kafka’s ability to scale horizontally. Each message has an offset as an identifier which are uniquely defined in partitions.</p><p><strong>→ Scalability</strong>: Scalability , in general, refers to ability and strength of broker to handle both expected and unexpected increases in workloads. In Apache Kafka, specifically, means how efficiently spreading data across multiple brokers and partitions within a Kafka cluster to overcome increasing workload more effectively.</p><p>Apache Kafka is able to handle scalability through some architectural features such as <em>dividing broker topics to several partitions</em>, <em>partition replication</em>, <em>intrinsic distributed architecture</em> that makes it possible to add extra broker to cluster.</p><p>On the other words, Apache Kafka provides <em>horizontal scaling </em>possibility, in contract to RabbitMQ that scales vertically (It expands by upgrading the resources of a single machine).</p><p><strong>→ Latency</strong>: Since Kafka is designed to support various types of applications such as real-time and semi-real-time, it is a very crucial feature and game changer metric that refers to elapsed time between when the event or message published by producer and when it is consumed by consumer.</p><p>In every application, latency can stem from various factors, some of which may be susceptible to compromise while others are beyond our control. Here, we’re looking at the overall delay time in Kafka, which we call <em>end-to-end latency</em>. This includes three main parts that contribute to the delay as flows:</p><ul><li>Producer/Consumer Latency: The network, which moves data between a producer and broker or between a broker and consumer, is crucial for application performance and Kafka latency.</li><li>Broker (Kafka) Processing Latency: When an event or message reaches the broker, it gets stored on the disk and later retrieved when requested by the consumer. This process relies on input/output operations, which can affect performance.</li><li>Cluster Latency: Typically, Apache Kafka operates with several nodes (brokers) and partitions. As you add more brokers, the internal network latency tends to increase.</li></ul><p><strong>→ Durability</strong>: This describes a feature in Apache Kafka that guarantees that an event or message is securely stored and retained, even if there’s a system failure or down-time. It achieves durability through some its key features and mechanisms. One of these is <em>Data Replication</em>, which works by replicating data across several brokers (nodes).</p><p>Sending acknowledgment is another crucial mechanism that assists Apache Kafka in ensuring durability. It’s feasible to set it up so that the producer receives confirmation (acknowledgment) only after the message has been successfully written in the cluster.</p><p><strong>→ Use Cases</strong>: Apache Kafka is a well-known solution for business needs such as message queuing, log aggregation and analysis, event sourcing, change data capture (CDC), real-time data processing, data integration and microservices communication.</p><p><strong>Check out the complete </strong><a href="https://chelongar.com/brokers-queues-the-backbone-of-event-driven-architecture/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/chelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2acf7b760956" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vasa Architecture — Jack-of-All-Trades, Master of None]]></title>
            <link>https://medium.com/@masoud.chelongar/vasa-architecture-jack-of-all-trades-master-of-none-9870e40b971b?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/9870e40b971b</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Mon, 10 Jul 2023 18:32:20 GMT</pubDate>
            <atom:updated>2023-07-13T05:47:36.095Z</atom:updated>
            <content:encoded><![CDATA[<h2>Vasa Architecture — Jack-of-All-Trades, Master of None</h2><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dFf3SX6Zf9AhFrHQ" /><figcaption>Iran, Isfahan — Photo by <a href="https://unsplash.com/ja/@shkazemi?utm_source=medium&amp;utm_medium=referral">H Kazemi</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>Many experts, developers and architects have written numerous articles and books about architecture styles, best practices and their pros and cons both in academia and industry. But what persuaded me to inscribe this blog post is the <a href="https://www.primevideotech.com/video-streaming/scaling-up-the-prime-video-audio-video-monitoring-service-and-reducing-costs-by-90"><em>article </em></a>by <a href="https://www.primevideotech.com/marcin-kolny">Marcin Kolney</a> in <a href="https://www.primevideotech.com/"><em>prime video Tech</em></a>, published on 22nd of March 2023, about distributed system overhead and moving from distributed microservices architecture to a monolith application to achieve higher resiliency and scalability.</p><p>This surprising, and to be honest valuable article proves a brillant solution can be inefficient after a while, motivated me to share with you my experiences in the filed of software architecture and explain the importance of <em>trade-off</em> in choosing suitable architecture for our projects.</p><h3>Vasa Mentality</h3><p>Have you ever heard about the <a href="https://en.wikipedia.org/wiki/Vasa_(ship)"><em>Vasa (ship)</em></a>, the world’s most high-tech Swedish warship in 16th century, that sank just in few minutes of sailing? A ship with impressive architecture, designed and constructed to be multi-functional and trump card in war for Swedish army.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bhkeQdIxSHFF6B65" /><figcaption>Photo by <a href="https://unsplash.com/@cashil?utm_source=medium&amp;utm_medium=referral">Casper Hildebrand</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Proposing an architecture style to fulfill all possible stakeholders’ wishes and requests and lay out a product that tackles every requirements is the same as designing a <strong>vasa </strong>in software business. On the other words, this product would be clear-cut case of <em>jack of all trades, but master of none</em>.</p><p>To me, you would never be lucky to design a system that covers whole listed functional and non-functional architecture requirements. Furthermore, there is no any best practice, general or perpetual solution for a business domain requirements that could be valid for ever and in each circumstances because each company has its own definition, explanation and interpretation from<em> problem space</em> and those could be altered during the time. So we should always try to find out best <em>trade-offs</em> between architectural characteristics (-ilities) and requirements.</p><blockquote>Never shoot for the <em>best</em> architecture, but rather the <em>least worst</em> architecture.</blockquote><blockquote>— <a href="https://developertoarchitect.com/">Mark Richards</a> &amp; <a href="https://twitter.com/neal4d">Neal Ford</a>, <a href="https://www.amazon.de/-/en/Neal-Ford/dp/1492043451/ref=tmm_pap_swatch_0?_encoding=UTF8&amp;qid=1678193735&amp;sr=8-4">Fundamentals of Software Architecture</a></blockquote><h3>Least Worst Architecture</h3><p>To avoid <em>idealism </em>in designing applications that results products like vasa ship and have a most optimal architecture, architects and/or developers should define a clear strategy based on business domain and technical viewpoints.</p><p>In the below, I have listed some helpful and effective experiences and lesson learned to come up with <strong>least worst architecture</strong> and avoid<strong> </strong>vasa-like<strong> </strong>outcome for your projects.</p><h4><strong>1) Prioritize -ilities Based on Business Preference</strong></h4><p>It is probable, and to be honest happens often, that we should grant a priority or give more weight to an architectural characteristic than the others in our design. In an E-Commerce application, performance is the most influential feature in case of customer request processing and security is the key feature in money transaction.</p><p>Therefore, we have to prioritize even the -ilities based on service and/or microservice requirements beside considering application constrains and specifications.</p><h4><strong>2) Consider Top-7 Requirements</strong></h4><p>As I mentioned in previous section, an application can not cover all desired architecture characteristics because they are not independent from each other.</p><p>The most popular example of -ilities cross impact is the <em>trade-off</em> between <em>security </em>and <em>performance</em>. Enhancing and boosting one of them in software can significantly affect the other one and undermine or diminish it.</p><p>Furthermore, each characteristic has design and implementation effort that could be costly, expensive and even time consuming. That’s why we have to deal with <em>just </em>the most effective and efficacious architecture characteristics.</p><p>Last but not least, you may ask why <strong>Top-7</strong> Requirements? 🙄 Is it a secret number or maybe the <strong>7</strong> is kind of holy number? 😅 Well, there is no any logic behind it but experience! It is proved and also suggested by architects to not to choose more than limited number of architecture characteristics, otherwise fulfilling business requirements won’t be easily possible.</p><h4><strong>3) Build &amp; Implement Evolvable Architecture</strong></h4><p>To build an architecture that is both <em>incremental or evolvable</em> and also <em>meets the business constraints</em>, we need to consider the following:</p><ul><li>Practical agile software development methodologies in our workflow</li><li>Choosing suitable architecture style to facilitate changes and software development governance.</li></ul><p>The evolvable architecture key features are explained by the authors of <a href="https://www.amazon.de/-/en/Neal-Ford/dp/1492097543/ref=sr_1_1?keywords=building+evolutionary+architectures+automated+software+governance&amp;qid=1687437699&amp;sprefix=evolutionary+sof%2Caps%2C182&amp;sr=8-1">Building Evolutionary Software Architecture</a> as below:</p><blockquote>An evolutionary software architecture supports guided, incremental change across multiple dimensions.</blockquote><blockquote>— Rebecca Pearson, Neal Ford &amp; Patrick Kua</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1018/1*brhaVi8mm3fMWowbhRFR_g.png" /><figcaption><strong>Evolutionary Architecture Pillars</strong></figcaption></figure><p>To support first pillar, <strong>guided changes</strong>, it is strongly suggested to use <a href="https://www.thoughtworks.com/radar/techniques/architectural-fitness-function">fitness functions</a> in your CI/CD pipeline. Such function’s responsibility is to evaluate and control the impact of applied changes to the non-functional requirements.</p><p><em>Building software by development team </em>beside <em>deploying it incrementally</em> are the key points of fulfilling the <strong>incremental changes</strong> as the second pillar. Thinking not only <em>technically</em> but also <em>critically</em> is necessary for you as an architect or developer to define a <strong>multi dimensional architecture</strong> for your project as third pillar.</p><h4><strong>4) Choose An Appropriate Architecture Style</strong></h4><p>As mentioned, applying incremental approach to our project gives us a good flexibility and resilience to apply the changes in our architecture with minimum time and cost. But some <em>fast </em>and <em>simple </em>changes that are resulted by evolutionary architecture, such as <strong>architectural style</strong>, won’t be embraced with it.</p><p>Our decisions about architectural pattern has strong influence on the <em>project success</em>, <em>time to market</em> and <em>required effort and cost</em> in long term and majority of the time, because of project constrains like deadlines, wouldn’t be correctable, revisable and even returnable.</p><p>Therefore, If an <strong>architecture style</strong> is brad-new or looks interesting to use and implement, it doesn’t mean that they’re brilliant idea to be considered as solution and also won’t be revised in future.</p><h4><strong>5) Think in System</strong></h4><p>It is <em>highly recommended</em> that architects try to think <em>groundbreaking</em> and <em>divergent</em>. What I want to say is not about an <em>ivory tower architect</em> that definitely you have to beware such way of working style. But what I mean is that you have to not only <em>play technical roles </em>and <em>take technical responsibilities</em>, but also act <em>out of the box.</em></p><p>To achieve it and manage ourselves and our abilities to be <em>effective </em>and <em>influential</em>, we have to <strong>think in system</strong>. This approach teaches us how to think <em>complex </em>and how to deal with today’s real world <em>complicated </em>problem spaces.</p><blockquote>You think that because you understand “one” that you must therefore understand “two” because one and one make two. But you forget that you must also understand “and”.</blockquote><blockquote>— Donella Meadows, Thinking in Systems: A Primer</blockquote><p>Figuring out the whole ecosystem helps architects/developers to meet the most feasible <em>trade-off</em> for their architecture and to understand not only the software components , regardless of their granuliertes, but also the relations and associations between them as well.</p><h3>Wrapping Up</h3><p>Architects, developers and engineers always intend to do their bests in designing software. But this mentality could be arise <em>idealism </em>in development and architecture team and and be resulted to a product without any success for firms and with no any achievement in market.</p><p>Thinking non-linear and in system, beside choosing the proper architecture style and applying the incremental/evolvable architecture will grantee the minimum changes’ cost in future.</p><h3>Suggested Reading:</h3><p>📌 <a href="https://www.amazon.de/-/en/Neal-Ford/dp/1492043451/ref=tmm_pap_swatch_0?_encoding=UTF8&amp;qid=1678193735&amp;sr=8-4">Fundamentals of Software Architecture</a>, By: <a href="https://developertoarchitect.com/">Mark Richards</a> &amp; <a href="https://twitter.com/neal4d">Neal Ford</a></p><p>📌 <a href="https://www.amazon.de/-/en/Sam-Newman/dp/1492034029/ref=sr_1_1?keywords=microservices&amp;qid=1683702613&amp;sprefix=microser%2Caps%2C111&amp;sr=8-1">Building Microservices</a>, By: <a href="https://twitter.com/samnewman?ref_src=twsrc%5Egoogle%7Ctwcamp%5Eserp%7Ctwgr%5Eauthor">Sam Newman</a></p><p>📌 <a href="https://www.amazon.de/-/en/Neal-Ford/dp/1492097543/ref=sr_1_2?crid=37EUOVR9S8646&amp;keywords=evolutionary+architecture&amp;qid=1686724809&amp;sprefix=evolutionary+architecture+%2Caps%2C121&amp;sr=8-2">Building Evolutionary Architecture</a>, By: <a href="https://twitter.com/neal4d">Neal Ford</a>, <a href="https://twitter.com/rebeccaparsons?lang=de">Rebecca Parsons</a></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/masoudchelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9870e40b971b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloud Computing — Infrastructure as Code]]></title>
            <link>https://medium.com/@masoud.chelongar/cloud-computing-infrastructure-as-code-e408e55eb6dc?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/e408e55eb6dc</guid>
            <category><![CDATA[infrastructure-as-code]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Sun, 07 May 2023 19:28:54 GMT</pubDate>
            <atom:updated>2023-05-07T19:28:54.557Z</atom:updated>
            <content:encoded><![CDATA[<h3>Cloud Computing — Infrastructure as Code</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/622/1*cOqB5XyB8j-jcXVK2iA_Qw.png" /><figcaption><strong>Source — [</strong><a href="https://www.cisco.com/c/en/us/solutions/cloud/what-is-iac.html"><strong>Cisco</strong></a><strong>]</strong></figcaption></figure><h3>Overview</h3><p>From the time that companies and firms had a dream of their own server room until now that not all but majority of them are trying to migrate their infrastructure to cloud and gain benefits of this technology, managing infrastructure to have zero downtime and automating deployment are highly challenging and demanding topics.</p><p>The outstanding features that make cloud-based infrastructure different from traditional or on-premises infrastructure are much enough to persuade companies to decide for it against the old-fashion solutions.</p><h3>IT Infrastructure Eras — Cloud-Based vs. On-Premises</h3><p>It is unconcealable that we can separate the IT infrastructure management and business into two distinct eras, before appearance of cloud technology and after it. They are two various mindsets and methodologies that have their own costs &amp; benefits and pros &amp; cons.</p><p>When an IT team or a company wants to insist on its decision about using on-premise infrastructure, the most significant reasons to convince the management board would be <em>data security</em> and <a href="https://en.wikipedia.org/wiki/General_Data_Protection_Regulation"><em>GDPR</em></a>. As, in cloud-based infrastructure, all or part of software is installed on third party servers, it is always challenging task to fulfill these kind of customer’s requirements if IT team decides to deploy its infrastructure on cloud environments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/1*Y--nmAZVGzJn9X4impbAjA.png" /><figcaption><strong>Source — [</strong><a href="https://www.sketchbubble.com/en/presentation-on-premise-vs-cloud.html"><strong>SketchBublle</strong></a><strong>]</strong></figcaption></figure><p>In cloud-based IT projects, the companies pay only for used infrastructure and don’t care about the resource maintenance, patching and backup management. On the other side, for on-premises projects, the IT team is responsible for all of mentioned tasks plus updating and upgrading the hardware (Infrastructure). Regrading mentioned differences, obviously the on-premise solution is <em>more expensive</em> than modern solution for firms.</p><p>Beside all advantages that <em>cloud-based</em> solutions offer, <em>unreliable internet access</em> can negatively affect the customer experience, service delivery, <a href="https://en.wikipedia.org/wiki/Service-level_agreement">SLA</a> and many other business requirements that companies can gain from cloud environment technology.</p><h3>Infrastructure as Code (IaC)</h3><p>If we consider today’s goal of each organization adapting itself with agile workflow and being as much as possible fast in providing high quality service and product as the most important target and intention to achieve, <strong>Infrastructure as Code</strong>, not only is the right choice but also inevitable for firms to manage and provision their infrastructure.</p><p><strong>IaC</strong> explanation is right in its name. It is a definition of infrastructure management and provisioning by writing code to help organizations, regardless of cloud-based or on-premises, to:</p><p>✤ Automate managing and provisioning infrastructure by collaboration with version control software and integrate it to CI/CD and SDLC (software development life cycle)</p><p>✤ Enhance security features such as network segmentation, policy violations identification and vulnerabilities recognition</p><p>✤ Track and audit infrastructure changes to meet technical and/or legal requirements and constraints</p><p>✤ Organization cost reduction and diminishment of human faults and errors via provisioning infrastructure</p><blockquote><a href="https://twitter.com/kief?lang=de">Kief Morris</a> explains <strong>IaC </strong>in his <a href="https://www.amazon.de/-/en/Kief-Morris/dp/1098114671/ref=sr_1_1?keywords=infrastrukturas+code&amp;qid=1677594102&amp;sprefix=infastucture+as%2Caps%2C100&amp;sr=8-1">book </a>as below:</blockquote><blockquote>Infrastructure as Code is an approach to infrastructure automation based on practices from software development. It emphasizes consistent, repeatable routines for provisioning and changing systems and their configuration.</blockquote><h4>IaC Implementation Approaches (Viewpoints)</h4><p>Regarding categorizing programming languages based on supported techniques and features, and respecting the fact that <strong>IaC </strong>is software development approach, the path to accomplish it can be classified into two paradigms:</p><p>📌 <strong>Imperative</strong>: Traditional programming paradigm that code describes all steps of process, such as variable declaration, function call and instance definition. In other words, imperative programming intends to address <strong>HOW </strong>the script perform the tasks.</p><p>📌 <strong>Declarative</strong>: Characterizes <strong>WHAT </strong>the code or program should do (In the contrary to imperative), without any details about process control. <em>SQL </em>would be named as the most famous declarative language. It is preferred approach in managing infrastructure regarding degree of flexibility. Furthermore, in cloud-based infrastructure, <strong>declarative</strong> methodology is accepted and utilized as <em>best practice</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/744/1*pqKeZKctEBlkOHH16fWocw.png" /><figcaption><strong>Source — [</strong><a href="https://luizdeaguiar.com.br/2022/09/13/imperative-vs-declarative-testing/"><strong>LuiyDeAguiar</strong></a><strong>]</strong></figcaption></figure><p>Both paradigms or viewpoints, <strong>imperative </strong>and <strong>declarative</strong>, are widely used in <strong>IaC </strong>and respecting requirements can be adopted in projects for platform automation. There are various automation platform tools in market that offer one or both approaches to integrate <strong>IaC </strong>into CI/CD. <a href="https://www.ansible.com/"><strong>Ansible</strong></a><strong> , </strong><a href="https://www.terraform.io/"><strong>Terraform</strong></a>, <a href="https://www.puppet.com/"><strong>Puppet</strong></a>, <a href="https://aws.amazon.com/cloudformation/"><strong>AWS CloudFormation</strong></a><strong> </strong>and <a href="https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/overview"><strong>Azure Resource Manager</strong></a><strong> </strong>are considered as most popular declarative tools. Furthermore, ansible specifically supports imperative approach in some cases too.</p><p><a href="https://www.chef.io/"><strong>Chef</strong></a>, that offers full support for imperative approach, is known as the most famous tool in market.</p><p>Here is an example of creating an AWS S3 instance with Terraform that follows the <strong>declarative </strong>approach:</p><pre>module:<br>- s3:<br>  - bucket_name: my-test-bucket226600 # Must be UNIQUE<br>    source: &lt;path-to-S3-directory&gt;<br>provider:<br>- aws:<br>  - access_key: &lt;my_aws_access_key&gt;<br>    region: us-east-2<br>    secret_key: &lt;my_aws_secret_key&gt;</pre><p>And in the following, you can see the <strong>imperative </strong>approach to create a AWS S3 bucket with AWS cli in 2 steps, first configure AWS cli and then creating bucket in AWS cloud:</p><pre>$ aws configure<br>  AWS Access Key ID [None]: &lt;MyAWSAccessKey&gt;<br>  AWS Secret Access Key [None]: &lt;MyAWSSecretKey&gt;<br>  Default regionlu name [None]: us-west-2<br>  Default output format [None]: ENTER<br><br>$ aws s3api create-bucket --bucket my-test-bucket226600</pre><p>By comparing these 2 approaches for such a simple storage creation in AWS, you can imagine how easy and flexible <strong>declarative</strong> method could be if we have a complex infrastructure consists of many EC2 instances, load balancers, storages and databases, IAM and so on.</p><h4>Infrastructure as Code in SDLC</h4><p>Software development lifecycle (<strong>SDLC</strong>) intends to define a software production process for providing high quality software in shortest time with lowest possible cost. As it is mentioned, feasibility of <strong>IaC </strong>integration to CI/CD pipeline is one of the effective features of this methodology.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*1aSF7MSORS51B00MdZS1Gw.jpeg" /><figcaption><strong>Source — [</strong><a href="https://mobilecoderz.com/blog/infrastructure-as-code/"><strong>Mobilecoderz</strong></a><strong>]</strong></figcaption></figure><p>By <strong>IaC</strong>, firms have possibility to define, provision, change and update resources and infrastructures on demand in cloud environment as part of <strong>SDLC</strong> <em>deployment</em> phase, instead of creating them before running pipeline as we do in old-fashion infrastructure management.</p><h3>Wrapping Up</h3><p>Migrating infrastructure to the cloud environment and automating software production lifecycle that is aligned with agile methodology convince us to adopt <strong>IaC </strong>and integrate it to our CI/CD.</p><p>Nowadays, <em>declarative</em> approach, to provision and define infrastructures, offers various numbers of features and capabilities to DevOps engineers, software developers and firms to overcome the bottleneck of infrastructure management and its costs and expenses.</p><h3>Suggested Reading:</h3><p>📌 <a href="https://www.amazon.de/-/en/Kief-Morris/dp/1098114671/ref=sr_1_1?keywords=infrastruktur+als+code&amp;qid=1682498608&amp;sprefix=infrastracture+%2Caps%2C99&amp;sr=8-1">Infrastructure as Code: Dynamic Systems for the Cloud Age</a>, By: <a href="https://twitter.com/kief?lang=de">Kief Morris</a></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/masoudchelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e408e55eb6dc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Architect’s  Soft-Skills— Architecture Decision Record (ADR)]]></title>
            <link>https://medium.com/@masoud.chelongar/software-architects-soft-skills-architecture-decision-record-adr-355d3b429235?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/355d3b429235</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[soft-skills]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Tue, 18 Apr 2023 19:40:01 GMT</pubDate>
            <atom:updated>2025-04-23T17:26:26.833Z</atom:updated>
            <content:encoded><![CDATA[<h3>Software Architect’s Soft-Skills— Architecture Decision Record (ADR)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8aLfVr5Va4jteeYr" /><figcaption>Photo by <a href="https://unsplash.com/@florenciaviadana?utm_source=medium&amp;utm_medium=referral">Florencia Viadana</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>The world of software development and product architecture has different meaning from beginning of 21st century by emerging Agile software development methodology.</p><p>We have heard about different types of documentations that used and benefited variety of them, based on requested information and their usage, such as source code (low-level) documentation, software requirement (high-level) documentation and end user instructions in our projects.</p><p>But what about the architecture documentation? What kind of challenges do we have to record our daily architectural decisions regarding <a href="https://agilemanifesto.org/"><em>Agile Software Development Manifesto</em></a>?</p><h3>Architecture Decision Record (ADR )</h3><p>The necessity of using evolutionary architecture and developing incremental software production procedure in today’s software development lifecycle obliges us to record our architectural decisions as we do it for other decisions like design and implementation.</p><blockquote>Architecture Decision Record is invented and coined by <a href="https://www.michaelnygard.com/">Michael Naygard</a>:</blockquote><blockquote>We will keep a collection of records for “architecturally significant” decisions: those that affect the structure, non-functional characteristics, dependencies, interfaces, or construction techniques.</blockquote><p>To be more precise, the <em>five</em><strong> </strong>main decision fields that should be documented and recorded are:</p><p>✤ <strong>Structure</strong>: Agreement about the main architectural style like EDA, modular monolith, microservice and so on.</p><p>✤ <strong>Non-functional Characteristics</strong>: -ilities such as scalability, elasticity, data integrity and security.</p><p>✤ <strong>Dependencies</strong>: Internal and/or external dependencies between software components that could be resulted to coupling in services.</p><p>✤ <strong>Interfaces</strong>: Consists of software interfaces like API and user interfaces.</p><p>✤ <strong>Construction Techniques</strong>: Includes programming languages, platforms, software development methodologies such as scrum and so on.</p><p>Each document has <em>five </em>sections that conveys all necessary information about decision, side-effects and consequences briefly. Regarding company policy and management decisions, we can add more sections to make it more informative, comprehensive and complete.</p><p>📌 <strong>Title</strong>: As it is recognizable, it expresses the <em>Architecture Decision</em> in a nutshell. Normally, the documentation should be numbered in this section.</p><p>📌 <strong>Status</strong>: The condition of decision that could be defined in 4 statuses.</p><ol><li><em>proposed</em>: Initial status of each <strong>ADR</strong>.</li><li><em>accepted</em>: Approved or confirmed architecture decision.</li><li><em>rejected</em>: The <em>dropped </em>solutions because of any reasons. It is strongly suggested to kept them to have complete history of discussed solutions and decisions.</li><li><em>superseded:</em> It describes the revised decisions. The accepted <strong>ADR </strong>could be surpassed by them.</li></ol><p>📌 <strong>Context</strong>: There is always a reason(s) that we are convinced or sometimes forced to take this decision and it has to be explained here.</p><p>📌 <strong>Decision</strong>: It contains the <em>affirmative </em>description with <em>non-passive</em> sentences about the architectural decisions. Furthermore, this part of documentation should be written in details to simply prevent doubts and upcoming questions about the decision.</p><p>📌 <strong>Consequence</strong>: The section that covers the advantages and disadvantages of decision and the services and components that would be affected with it should be mentioned here. Moreover, here is the right place to talk about<em> trade-offs</em>.</p><p><a href="https://twitter.com/neal4d">Neal Ford</a> and <a href="https://twitter.com/markrichardssa">Mark Richards</a> in their book suggest two more optional section for <strong>ADR</strong> as complementary parts.</p><p>📌 <strong>Compliance</strong>: How the architecture decision will be measured and governed from a compliance perspective.</p><p>📌 <strong>Notes</strong>: This chunk is a metadata section that can have information such as <em>author</em>, <em>approval date</em>, <em>approved by</em> and so on.</p><p>The suggested format for <strong>ADR </strong>is <a href="https://www.markdownguide.org/">Markdown</a> or <a href="https://asciidoc.org/">ASCII</a> that should be written in <em>maximum </em><strong>two </strong>pages. I have seen many companies and organizations prefer using wiki or confluence pages for this reason that are not suggested. The <strong>ADR </strong>Best Practice is to keep records in the repository with source code.</p><h3>Case Study</h3><p>Redefining an architecture for a monolithic project, <em>Parameter-Regulator, </em>that has been developed during roughly 20 years and now is suffering from <a href="https://en.wikipedia.org/wiki/Anti-pattern#Big_ball_of_mud">big ball of mud anti-pattern</a> without any possibility to extend, modify and further development, and documenting our decisions are what we desire in this section.</p><p><em>Parameter-Regulator </em>is a desktop application that has been developed to parametrize and program ICs from different commercial brands for variety of embedded devices in cars such as mirror, window lifter and so on.</p><h4>Architecture Style</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qzhOyv-UBLPj1qO0d5TC9A.png" /></figure><h3>Additional Readings</h3><p>📌 <a href="https://www.cognitect.com/blog/2011/11/15/documenting-architecture-decisions">Documenting Architecture Decisions</a>, By: <a href="https://www.michaelnygard.com/">Michael Naygard</a></p><p>📌 <a href="https://www.amazon.de/-/en/Neal-Ford/dp/1492043451/ref=tmm_pap_swatch_0?_encoding=UTF8&amp;qid=1678193735&amp;sr=8-4">Fundamentals of Software Architecture</a>, By: <a href="https://developertoarchitect.com/">Mark Richards</a>, <a href="https://twitter.com/neal4d">Neal Ford</a></p><p>📌 <a href="https://www.hascode.com/2018/05/managing-architecture-decision-records-with-adr-tools/">Managing Architecture Decision Records with ADR-Tools</a>, By: Micha Kopf</p><p><strong>Check out the complete </strong><a href="https://chelongar.com/architecture-decision-record/"><strong><em>article</em></strong></a><strong> on my </strong><a href="https://chelongar.com/en/Home/"><strong><em>website</em></strong></a><strong> for more details.</strong></p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/masoudchelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=355d3b429235" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL Backup Types — Comparison & Contrast]]></title>
            <link>https://medium.com/@masoud.chelongar/postgresql-backup-types-comparison-contrast-b4945177cabc?source=rss-e4def9a40a50------2</link>
            <guid isPermaLink="false">https://medium.com/p/b4945177cabc</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[relational-databases]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Masoud Chelongar]]></dc:creator>
            <pubDate>Mon, 27 Mar 2023 18:23:43 GMT</pubDate>
            <atom:updated>2023-04-18T08:12:04.143Z</atom:updated>
            <content:encoded><![CDATA[<h3>PostgreSQL Backup Types — Comparison &amp; Contrast</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VOzJcWdUk4ybrMSF" /><figcaption>Photo by <a href="https://unsplash.com/@allaperto?utm_source=medium&amp;utm_medium=referral">Felix M. Dorn</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Overview</h3><p>In our world that is surrounded by humans’ activities and machines’ actions; <em>controlling</em>, <em>governing</em>, <em>administrating </em>and <em>handling </em>data is one of our daily challenges as software engineer. That&#39;s why data and its related infrastructure are inevitable fact for business success and trade continuity.</p><blockquote><a href="https://www.linkedin.com/in/jeffweiner08?trk=author_mini-profile_title">Jeff Weiner</a>, The Executive Chairman at LinkedIn says:</blockquote><blockquote>Data really powers everything that we do.</blockquote><p>Undoubtedly, robustness and reliability are the core features of databases like <a href="https://www.postgresql.org/"><strong>PostgreSQL</strong></a>,<strong> </strong><a href="https://www.mysql.com/">MySQL</a> or <a href="https://mariadb.org/">MariaDB</a>. But there are many parameters and factors in daily business that can be considered as database failure causes like human mistakes, power outage, natural phenomena and software bugs and corruptions. Therefore, defining and implementing a <em>DB backup policy</em> to overcome unexpected problems seems essential for every company to recover its assets.</p><p><em>Database backup</em> is a process or workflow in companies that precisely express administrating and storing a copy of data to prevent effects of loosing or damaging it by issues mentioned above.</p><p><a href="https://www.postgresql.org/"><strong>PostgreSQL</strong></a>, a robust open-source object-relational database, is the most popular relational database that plays an important role in software industry, data management and applications’ architecture.</p><h3>Types of Database Backup</h3><p>Respecting the definition of <em>DB backup</em>, this process could be categorized for <strong>PostgreSQL</strong> and other relational databases in 3 main groups that will be described in this session.</p><h4>📌 Full Backup</h4><p>The <em>most confident, reliable </em>and <em>secure</em> DB backup methodology that can be planned and implemented by firms is <strong>full backup</strong>. As it is plainly comprehensible from its name, full backup provides a complete copy of database. Beside advantages specified above, we can gain <em>simplicity of backup and recovery process</em>, <em>uncomplicated restoring data</em> and <em>best business data protection</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/637/1*LVgbk1yS6mmWxzbkrRFd9g.png" /><figcaption><strong>Full PostgreSQL Backup</strong></figcaption></figure><p>In contrary of <strong>full backup</strong> benefits, we have to consider that it could be <em>time consuming</em> (depends on DB size) and also <em>high demand of storage</em> to perform such backups properly. That’s why many companies prefer to do it not hourly or even couple of backups per day. Here is a simple python snippet to make a <strong>PostgreSQL</strong> full backup.</p><pre>import subprocess<br><br>sql_command = &#39;pg_dump -h {0} -d {1} -U postgres -p 5432  -f db_backup.dmp&#39;.format(db_host, db_name)<br>try:<br>  proces = subprocess.Popen(sql_command, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)<br>  process.wait()<br>except subprocess.CalledProcessError as err:<br>  raise Exception(err)</pre><p>Restoring <strong>full backup</strong> is a trivial process that could be done by this sample python code:</p><pre>import subprocess<br><br>sql_command = &#39;pg_restore -h {0} -U postgres -p 5432 -Ft -d {1} &lt; db_backup.dmp&#39;.format(db_host, db_name)<br>try:<br>  proces= subprocess.Popen(sql_command, shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE)<br>  proces.wait()<br>except subprocess.CalledProcessError as err:<br>  raise Exception(err)</pre><h4>📌 Differential Backup</h4><p>The other backup methodology, <strong>differential backup</strong>, could be used as complementary of full backup to decrease its disadvantages and detriment aspects. Its features to compensate the difficulties of full DB backup could be as listed here:</p><ul><li>Less storage to save data</li><li>Time to backup</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/509/1*5hgE5Ui7lUXn6wzpFAQxng.png" /><figcaption><strong>Differential PostgreSQL Backup</strong></figcaption></figure><p>As illustrated in figure above, each <strong>differential backup</strong> is based on the <em>latest </em>full backup. It copies the changes by comparing of current status of DB to the <em>latest </em>full backup. As we know, PostgreSQL keeps tables as distinct files in <em>data directory</em> and in this methodology we just keep the altered file as backup. The represented python code snippet could give you how incremental backup can be implemented:</p><pre>import os<br>import shutil<br><br>try:<br>    postgres_data_directory = os.environ.get(&#39;PGDATA&#39;) + &#39;/12/main/base&#39;<br>    tables = os.listdir(postgres_data_directory)<br>except os.error as error:<br>    raise Exception(error)<br><br>for item in tebles:<br>    try:<br>        # Last modification time in second<br>        modification_time = os.path.getmtime(item)<br>    except os.error as error:<br>        raise Exception(error)<br>    # Check if the modification time is more than an hour<br>    if modification_time &gt; last_full_backup_time:<br>        shutil.copyfile(item, target)</pre><p>The only challenge in using this method is <em>data restore</em>. In contrary of full backup that we can simply replace the whole DB with the backup instance, here we have to consider the <em>latest full backup</em> and <em>latest differential backup</em> to restore data accordingly. As the first step, we restore the latest full backup and then will copy the altered files that collected during last differential backup to data directory.</p><h4>📌 Incremental Backup</h4><p><strong>Incremental backup</strong> methodology is known also as <em>Point-in-Time-Recovery</em> and <em>Archive-Backup</em>. This backup process is based on <em>Write Ahead Log</em> (<em>WAL</em>) files that contain the database history of transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/1*z7sbFm6K6peHteLTFdzB1g.png" /><figcaption><strong>Incremental PostgreSQL Backup</strong></figcaption></figure><p>To recover or restore data last full back up and all incremental records are necessary.</p><h3>Comparison &amp; Contrast</h3><p>In regard to the backup types descriptions, we can compare the whole <strong>process </strong>(Database Backup) from two different and disparate business point of views.</p><h4>Process Complexity</h4><p>Not always but most of the time, the customers’ requirements, stakeholders’ concerns and company prerequisites propel us to choose a complex solution for the backup process.</p><p>Regardless of technical and architectural concerns, complexity of process does have numerous side effects and reactions in firms. <a href="https://www.tonyrobbins.com/">Tony Robbins</a> believes incomplexity as significant disadvantage for every organization:</p><blockquote>Complexity is the enemy of execution.</blockquote><p>To be honest, it is true even when you want to embrace a suitable backup methodology for your project or company. Or from security point of view, I would like to point at <a href="https://de.wikipedia.org/wiki/Bruce_Schneier">Bruce Schneier</a> about process complexity:</p><blockquote>Complexity is the worst enemy of security, and our systems are getting more complex all the time.</blockquote><p>The less complex one, as you can figure out from last section, is full backup because of saving a copy from whole DB and restoring it simply without any logic complexity. Differential backup, on the other hand, because of extra step in restoring incremental data is in next complication level. But the most challenging way of PostgreSQL backup is incremental technique and it is only because of restoring more than one WAL files that are not independent from each other.</p><h4>Service Level Agreement</h4><p>Service Level Agreement (SLA) is commitments of a service provider that agreed with customer based on their contract. These agreements can grantee many different <em>requirements</em> and <em>-ilities </em>such as performance, availability and so on.</p><p>Full backup, regarding the database size, can affect availability and even performance significantly because you have to close connection for a couple of seconds to restore data.</p><p>Incremental backup, on the other hand, has very good compatibility with DB availability policy and can offer <em>zero down-time</em>.</p><h3>Wrapping Up</h3><p>The influential factor that always plays the most important role in choosing DB backup policy, in first glance, is the business requirements. Respecting explained methodologies for backup and data recovery, architects and developers are forced to take critical decisions about it.</p><p>Concerning my experience in this field, <em>performance</em> and <em>service availability</em> are the requirements that have to be considered in decision making procedure to choose best backup policy beside other -ilities from customer.</p><p><strong>Please feel free to reach me out at </strong><a href="https://www.linkedin.com/in/masoudchelongar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em>and </strong><a href="https://twitter.com/masoudchelongar"><strong><em>Twitter</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b4945177cabc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>