<?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 Niraj Singh on Medium]]></title>
        <description><![CDATA[Stories by Niraj Singh on Medium]]></description>
        <link>https://medium.com/@nirajsingh_43991?source=rss-271a58c96b7f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*zzFU31Arq-HqzWCV</url>
            <title>Stories by Niraj Singh on Medium</title>
            <link>https://medium.com/@nirajsingh_43991?source=rss-271a58c96b7f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 18:13:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nirajsingh_43991/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[Unifying Vision: Aligning Stakeholders Through the Architecture Vision Document]]></title>
            <link>https://medium.com/@nirajsingh_43991/unifying-vision-aligning-stakeholders-through-the-architecture-vision-document-1adb5bb8389d?source=rss-271a58c96b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1adb5bb8389d</guid>
            <category><![CDATA[stakeholder-engagement]]></category>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[stakeholder]]></category>
            <category><![CDATA[stakeholder-alignment]]></category>
            <category><![CDATA[technical-documentation]]></category>
            <dc:creator><![CDATA[Niraj Singh]]></dc:creator>
            <pubDate>Thu, 03 Jul 2025 05:22:15 GMT</pubDate>
            <atom:updated>2025-07-03T05:22:15.554Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the most important jobs of an Architect is to align their stakeholders on the proposed architecture solution. Seems easy right? Capture the requirements, assemble your system, solve for functionality, scale, performance, reliability and evolvability. Apply a shiny new tech stack, talk about cloud, talk about the architecture and design patterns and you are done right? Wrong.</p><p>One of the fundamental truths of any System Design is that there are many stakeholders of the system. Each of these stakeholders have their own viewpoints and each of these viewpoints results in a distinct architecture view. If these views are not captured and incorporated in the architecture solution, then you can kiss the stakeholder alignment goodbye. This multiplicity of view makes the communication and collaboration on system architecture a complex proposition.</p><p>Building further, good architects do a great job at providing a tech solution for business problem i.e. they do a great job on tech side of things, but many of them fall short on the enterprise side. They blissfully ignore the most important stakeholder of the system i.e. the one who pays for the system i.e. the business stakeholder. This failure to align with business stakeholders results in rejection of many solutions. In my 20+ years of being a tech professional I have seen several great proposals go down the drain as the architect was not able to convince the business, why their solution would add to the top line of the business.</p><p>So today, in this blog post I am going to talk about a simple model for alignment on architecture solution with different stakeholders i.e. “<strong>Architecture Vision Document</strong>”. First I will talk about the goals and end it with a template for creating this document.</p><p><strong>Architecture Vision Document</strong> is created as an initial document by Enterprise Architects practicing TOGAF. The main goal of this document are as follows</p><p><strong>Early alignment on business goals</strong></p><ul><li>Connecting business drivers to architecture initiatives</li><li>Stakeholders (technical and non-technical) gets a shared understanding of purpose</li></ul><p><strong>Scopes and Boundaries</strong></p><ul><li>Clearly defines the scope, constraints, and high-level solution concept</li><li>Prevents scope creep and helps manage expectations</li></ul><p><strong>Stakeholder Buy-in</strong></p><ul><li>Artifacts like stakeholder maps, KPIs and high-level requirements ensures that key voices are heard early</li></ul><p><strong>Baseline vs Target</strong></p><ul><li>Documents current state (As-is) and the desired state (“To-Be”) at a high level, which is critical for transition planning.</li><li>Strategic Roadmap Foundation</li><li>Act as foundation for future phases</li></ul><p>So how to create one, here is a template:</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><h3>Problem Statement</h3><p>Clearly define the problem you are solving. The business requirement, pain points and opportunity cost.</p><p>Optionally you can add a Motivation Layer diagram of TOGAF here. Motivation layers is a simple diagram containing key stakeholder vision, guidelines, drivers, assessments and solution. A problem statement capturing thought process of CEO, CDO, Head of departments can be a powerful tool for alignment and rooting your solution along company’s direction.</p><p>Please click <a href="https://guides.visual-paradigm.com/preliminary-phase-archimate-a-motivation-viewpoint-part-2/">this</a> for learning how to create a Motivation Layer</p><h3>Goals and Objectives</h3><p>This is <strong>what</strong> part of the solution: What will your product do, capture it as an overarching statement and follow up with list of high-level objectives.</p><p><strong>Example</strong></p><p>To implement a Centralized Audit Service to capture and audit the infrastructure, application and data access events.</p><p><strong><em>Strategic Objectives</em></strong></p><ul><li>Data Usage audit for System ABC</li><li>Infra provision Audit for system XYZ</li><li>Meet Data Compliance requirement for ABC</li><li>Implement FinOps for XYZ</li></ul><p><strong><em>KPIs/Success Measures</em></strong></p><p>List down the key business and operational KPIs for the Solution. Example</p><p><strong>Business KPIs</strong></p><ul><li>Click Through Rate — Improve CTR by 20% by end for Q4–2025</li><li>Churn Rate — Decrease Churn by 20%</li><li>Increase DAU/MAU by 20%</li></ul><p><strong>Platform KPIs</strong></p><ul><li>Increase number of clients from 10 to 15</li><li>Increase throughput on x component by 30%</li></ul><p><strong>Operational KPIs</strong></p><ul><li>Maintain a MTTR of less than 1 hour</li></ul><h3>Requirements “Using Moscow”</h3><p><strong>Must Have</strong></p><ul><li>M1: Backend end API for ingesting audit event</li><li>M2: Dashboard for performing audit and analytics</li></ul><p><strong>Should Have</strong></p><ul><li>S1: Self Service portal for managing the audit service</li><li>S2: SDK for easy integration</li></ul><p><strong>Could Have</strong></p><ul><li>C1: Javascript Library for integration of frontend components</li></ul><p><strong>Won’t Have (In MVP)</strong></p><ul><li>W1: IaaC/CaC for single click deployment on cloud</li></ul><h3>Principle, Drivers and Methodology</h3><p>This section captions the <strong>how</strong> part of the solution. What the guiding principles and drivers. The consider the methodologies used to solve the problem.</p><p>Example</p><h3>Principles and Drivers</h3><ul><li>Maximize benefit to enterprise</li><li>Common Usage Principle</li><li>Data is an asset</li><li>Data should be protected</li></ul><h3>Methodology</h3><p>The Centralized Audit Service will be implemented using a hexagonal architecture. The details are listed below</p><p><strong>First Class Audit Events</strong></p><ul><li>Each audit event i.e creation of a VM, deployment of service, SSH into a VM, execution of a SQL query will be treated as an Event</li></ul><p><strong>Hexagonal Architecture</strong></p><ul><li>Audit Event Management will form the core central domain component of the hexagon</li><li>Other systems will be integrated using adapter design pattern</li></ul><p><strong>Dashboard Per Element</strong></p><ul><li>Each element in the database will have a separate dashboard. For example, a table will have its own dashboard</li></ul><p><strong>Generic Event Design</strong></p><ul><li>The event schema will be generic and stored in a centralized location</li></ul><h3>Context Diagram</h3><p>Now it is time to create your context diagram and put it here. It should be at high level, it should explain the key use cases and key component, subsystems and their relationship within the overall system. There is no need to talk about tech stack at this point.</p><h3>Milestones</h3><p>Put your key milestones for the MVP. This helps in scooping and creating a strategic plan later</p><ul><li>M1: Do Something</li><li>M2: Do The next Something</li><li>M3: …</li></ul><h3>Appendix and Optional</h3><h3>Value Proposition Document (Optional)</h3><p>This section contains ROI of the system and also the competitor market analysis.</p><h3>Key Definitions</h3><p>Normally a good practice to list down key domain and technical terms and provide the definitions</p><p>— — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — —</p><p>Once you have created this document you can start having discussions with the key stakeholders. Incorporate any extra feedback from the stakeholders. Don’t forget to share the document back with them once the changes are done.</p><p>That is all folks. Kindly let me know how you find the article. Also drop a note on how successfully or unsuccessfully you carry out the alignment business in your business.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1adb5bb8389d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Artificial General Intelligence: Boon or Existential Threat]]></title>
            <link>https://medium.com/@nirajsingh_43991/artificial-general-intelligence-boon-or-existential-threat-8163ce49806e?source=rss-271a58c96b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/8163ce49806e</guid>
            <category><![CDATA[opinion]]></category>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[agi]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Niraj Singh]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 16:33:15 GMT</pubDate>
            <atom:updated>2025-03-10T16:33:15.509Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SOIdainnqajNrXJPBLygiQ.jpeg" /><figcaption>Use it or loose it</figcaption></figure><p>The AI has taken the world by a storm, everyone is running to jump on the AI bandwagon. Most of the leaders gripped by FOMO and some driven by anxiety are trying to push their teams on a rapid AI adoption path.</p><p>While AI related disruption is inevitable, I take a step back and reflect on the situation, three stories are coming to mind which happened very recently</p><p><strong>Story 1</strong> — Few days back I was reviewing blog writeups from few of my colleagues, what caught my attention was the writing style. Elaborate, jargonistic and with great choice of words. Reading the blog, I got two conflicting thoughts</p><ol><li>Wow, what a great essay</li><li>Apparent lack of depth which was compounded by verbosity of information</li></ol><p>And then it struck me that I felt similar conflicting thoughts when I read the text generated by the new shiny chatbots. My doubts was confirmed by one of my colleauges when he told that he used a ChatBot for his blog.</p><p><strong>Story 2</strong> — I was learning Python and one of a very senior colleague who was passing by my desk commented “Hey, why are you learning a new language? Just use ChatGPT and it will generate the code for you”. I said nothing, but I felt really uneasy.</p><p><strong>Story 3</strong> — I met one of my old friends at a party and he was happily detailing how they are using AI to churn out entire applications on a go.</p><p>Every day, now a days, I see a lot of creative content like photos, videos, text being generated by one of the Generative AI bots. This makes me really concerned</p><p><strong>Minor Concerns though I am not loosing sleep on them</strong></p><ol><li>AI will eat up 300 million jobs in IT, health, research etc. Humanity can always find new avenues to find jobs and bounce back. So I am not very concerned by this.</li><li>AI is growing more and more empathetic, more intelligent and more knowledgeable day by day. I am really scared that once quantum chips become a reality, AI will become so powerful that they may become sentient and turn on us. But this is again in future and hence I can easily leave it to the future generations to tackle.</li><li>AInization will result in loss of privacy, AI driven policies. AI is totally ignoring up IPs and creating plagiarized content. Though Lack of privacy won’t kill you, Intellectual properties benefit a very small section of humankind and we can still ignore this.</li><li>AI in hands on of its controller will become a great tool to push a certain socio-political agenda. I think human beings are tenacious enough to adapt to new socio-economic realities and move forward.</li></ol><p><strong>Here come my real concern and that is Cognitive Atrophy:</strong></p><p>As Per (Dergaa et al. 2024) <a href="https://pmc.ncbi.nlm.nih.gov/articles/PMC11020077/">https://pmc.ncbi.nlm.nih.gov/articles/PMC11020077/</a></p><p><strong>Overreliance of Human Beings on AIC (Conversational AI Chatbots) could lead to cognitive decline.</strong></p><p>As per Paper <a href="https://www.mdpi.com/2075-4698/15/1/6">https://www.mdpi.com/2075-4698/15/1/6</a></p><p><strong>The younger participants displayed lower critical thinking skills and more cognitive offloading on AI as compared to an older participant. Thus our digital native generations are more prone to this.</strong></p><p>As the saying goes “Use it or lose it”. So, now here is the moral of my three stories: we are becoming over reliant on AI, with extra impetus by given by corporates to adopt it fast. We are looking at future where people will severely lose their creative thinking and critical thinking skills. What are we humans without our intellect and intuition? We as the apex species will decline and wither and be reduced to bunch of mediocre fools who are more worried about mundane, rather than pushing the frontiers of science and exploration. This indeed is a big and true existential threat for all of the humanity.</p><p>I think this society needs a serious debate on AI adoption and the the ethical dilema and the responsiblity aspects.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8163ce49806e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AFK Scale Cube: A Simple Framework for Application Scalability]]></title>
            <link>https://medium.com/@nirajsingh_43991/afk-scale-cube-a-simple-framework-for-application-scalability-1b89db8354ec?source=rss-271a58c96b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b89db8354ec</guid>
            <category><![CDATA[scalability]]></category>
            <category><![CDATA[architecture]]></category>
            <dc:creator><![CDATA[Niraj Singh]]></dc:creator>
            <pubDate>Sat, 15 Feb 2025 12:13:26 GMT</pubDate>
            <atom:updated>2025-02-15T12:13:26.378Z</atom:updated>
            <content:encoded><![CDATA[<p>AFK Scale Cube is a widely used scalability framework. It was created by an Architecture Consulting company known as AFK Partner.</p><p>Majority of N-tier applications are generally designed as a monolith or a distributed monolith. A natural questions for architects is how do we go about scaling this application? Scale cube can provide that mental model for scaling. Scale cube suggests 3 dimensions of scaling we will look at all the three</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*BtMkrTb7XiAzds0pvoRe2Q.jpeg" /><figcaption>Figure: ScaleCube</figcaption></figure><p>Imagine a single instance of an ecommerce application starting as a monolith deployed in a region serving customers in that region.</p><h3>X Axis Scaling (Cloning of a Service or Data)</h3><p>As the ecommerce application grows in popularity, more and more customers flock to the site, soon a time comes when a single instance of the ecommerce service is unable to serve all its customers. To meet the growing demand we clone or replicate the service and put it behind a load balancer. This is called <strong>X Axis scaling</strong> or horizontal scaling.</p><p>X Axis Scaling can be defined as scaling technique achieved by replicating or cloning the services or databases and putting them behind a load balancer.</p><p>Idea is that if one instance of a service can do X amount of work hence Y instances of same services can do x*y amount of work.</p><p>The horizontal scaling is easy to achieve, though it can quickly become a costly operational affair. Thus architects should carefully consider the option between horizontal scaling or vertical scaling.</p><p>If there is a consistent and constant high requirement of hardware resources then consider vertical scaling. If the load is variable and swings between high and low transaction rates then consider horizontal scaling.</p><h3>Y Axis Scaling “Scaling by splitting of data and transactions using some criteria”</h3><p>Now that we have scaled the ecommerce monolith using X Axis scaling, we find ourselves in situation of escalating cost. The monolith has become a bloatware and requires a big VM or container for hosting. Also we find that payment and shopping cart functions are not called as often as search and display of product functions. So remedy for this is to split the ecommerce service in many smaller service, each of which serves a specific functions and each of which now can be scaled horizontally depending on the specific transaction rate of that service. This is also known as Y Axis scaling or splitting of service using a specialised criteria.</p><p>Y Axis Scaling can be defined as scaling technique achieved by splitting a bigger service into many smaller cohesive services. Once the splitting is achieved each of the smaller services can be scaled as per their individual requirements.</p><p>Y Axis Scaling results in something called Microservices Architecture which is not very popular in industry.</p><p>Y Axis scaling is more complex than X Axis scaling as it results in creation of many small applications each of which required a independent Lifecyle management.</p><h3>Z Axis Scaling “Splitting Similar things”</h3><p>Now our ecommerce service is a distributed microservice. Each of these microservices are horizontally scaled to meet the demands of growing customer base. As the customer base keep on growing the amount of data generated by application becomes huge. The database server is no longer able to manage the data volume and data reads. Thus we need to scale the database as well. This is achieved by sharing the database using a sharding strategy. We may shard the database based on customer id or customer email or some consistent hashing technique. This form of scale is called Z Axis Scaling or sharding.</p><p>Z Axis scale can be defined as scaling technique achieved by splitting similar things into smaller manageable chunks. In case of databases it is known as Sharing</p><p>Z Axis scaling uses splitting strategy be based on region, id, consistent hashing etc.</p><p>Sharded Datasets makes the applications even more complex, as it requires changes in the application to ensure correct shard of data is connected based on sharing strategy.</p><h3>Summary</h3><ul><li>We have seen how we can use a scale cube as thinking model to scale our applications</li><li>Use X Axis scaling or horizontal scaling to scale similar loads.</li><li>Use Y Axis scaling or microservices by splitting an application based on some decomposition criteria and individually scaling these microservices.</li><li>Use X Axis scaling or horizontal scaling to scale out similar loads.</li><li>Use Y Axis scaling or microservices by splitting an application based on some decomposition criteria and individually scale these microservices.</li><li>Use Z Axis scaling or sharding to scale the datasets into smaller more manageable chunk.</li><li>Each of these scaling dimensions adds a level of complexity hence architects should be careful adopting these dimensions and not needlessly use them.</li><li>Care should be taken initially to ensure that scaling can be enabled a later time without too much of changes in the application.</li><li>If you like this post please drop in a message or a clap</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b89db8354ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Software Architecture — Part 1]]></title>
            <link>https://medium.com/@nirajsingh_43991/introduction-to-software-architecture-part-1-127d053f342a?source=rss-271a58c96b7f------2</link>
            <guid isPermaLink="false">https://medium.com/p/127d053f342a</guid>
            <category><![CDATA[introduction]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[software-architecture]]></category>
            <dc:creator><![CDATA[Niraj Singh]]></dc:creator>
            <pubDate>Mon, 06 Jan 2025 05:44:45 GMT</pubDate>
            <atom:updated>2025-01-06T05:44:45.815Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Software Architecture — Part 1</h3><h3>Introduction</h3><p><strong>Vitruvius — </strong>A roman architect in 1st Century BCE was the first person in history to have written a theory on Architecture. He is famous for coining the three characteristics of an Architecture.</p><ol><li><strong>Utilitas</strong> — The architecture should ensure utility</li><li><strong>Firmitas</strong> — The Architecture should ensure firmness and safety</li><li><strong>Venustas</strong> — The Architecture should ensure beauty</li></ol><p>Since Vitruvius we have come a long way. The Architecture theory, principles and practices used for building constructions are now applied to building of a Software as well.</p><p>The modern Software Architecture finds origin in works of <strong>E W Dijkstra</strong> a Dutch computer scientist in 1960–70s. Dijkstra, creator of ALGOL 60, first complier and of Dijkstra Shortest Path Traversal fame had many contributions in field of computer science. He was <strong>first to use layers in computer software system</strong>, he also worked prolifically in area of distributed systems and came up with concept of Self Stabilization.</p><p>Another pioneer who contributed significantly to field of computer science and architecture <strong>was David Parnas</strong>. In his seminal paper in 1972 “<em>On the Criteria to Be Used in Decomposing Systems into Modules</em>” Parnas gave the <strong>concepts of cohesion, loose coupling and concept of information hiding</strong> which later became key principles of Object-Oriented Programming. This paper discusses <strong>modularization</strong> as a mechanism for improving the flexibility and comprehensibility of system.</p><p>Software Architecture as a distinct field started to gain traction in 1990s when several computer scientists started to create fundamental theories and structure of Software Architecture. Some of the notable contributions are as follows</p><p><strong>SEI, Carnegi Melon</strong> in 1994 introduced <strong>System as collection of components, connectors and style</strong>.</p><p><strong>4 + 1 Architecture View Model</strong> — This model of Architecture was proposed by Canadian Computer Engineer <strong>Phillipe Krutchen</strong> in 1994. He proposed that software architecture can be described as multiple concurrent views from perspective of different stakeholders like developers, systems engineer, end user etc. This laid the foundation for many modern architecture frameworks which are in use today. The paper on 4+1 view model can be found here <a href="https://www.academia.edu/4003885/The_4_1_View_Model_of_Architecture">https://www.academia.edu/4003885/The_4_1_View_Model_of_Architecture</a></p><p><strong>Design Pattern: Elements of Reusable Object-Oriented Software</strong> — One of the most influential books in field of software design and architecture. It has list of 23 design patterns which we use today to write modular, loosely couple and extensible code. It was written in 1994 by Erich Gamma, Richard Helm, Ralph Johnson and John Vlassises, also famously known as Gang of Four.</p><p><strong>SOLID Principles</strong> — Group of Design Principles Proposed by <strong>Robert Martin</strong> an American Computer Scientist in 2000. SOLID is still used today as foundation of software design.</p><p>The list can go on and on so let me stop here. In this essay I intend to bring out some essential knowledge about what is software architecture and how to go about the business of creating a software architecture? So lets begin.</p><h3>What is Software architecture?</h3><p>There are several definitions of Architecture, in fact SEI has compiled a list of definitions of software architecture and you can read them here. <a href="https://insights.sei.cmu.edu/documents/2544/2010_010_001_513810.pdf">https://insights.sei.cmu.edu/documents/2544/2010_010_001_513810.pdf</a></p><p>My favorite definition is the one given by the Open Group</p><blockquote>The structure of components, their interrelationships, and principles and guideline governing their design and evolution over time.</blockquote><p>Thus, Architecture consists of following:</p><ol><li><strong>System</strong> — Main goal of a Software Architecture is to understand the complex nature of a system and come up with its structures.</li><li><strong>System Structure</strong> — The elements of the system and relationship between them.</li><li><strong>Architecture Principles and Guidelines</strong>– These are list of rules and recommendations which governs the decision making in Architecture</li><li><strong>System Design</strong> — The decisions regarding System Design normally uses architecture and design patterns</li><li><strong>Decisions</strong> — Architecture is nothing but a set of decisions or tradeoffs which can help the system in meeting its functional and nonfunctional requirements.</li><li><strong>Evolution of System</strong> — Evolution of architecture is about embracing changes in functionalities, technologies, entropy, usage patterns etc.</li><li><strong>Other Important Stuff — </strong>Includes processes, non-functional requirements etc</li></ol><h4>System</h4><p>IT Organizations build Software Systems to solve their business problems. Thus, the first scope of Architecture is to discover the System which can solve the business problems. What is a System?</p><blockquote>A system is a set of related components that work together in a particular environment to perform whatever functions are required to achieve System’s objective</blockquote><blockquote><strong>- Donella Meadows</strong></blockquote><p>Architects can use <strong>System Thinking</strong> to come up with structure of a System. Every System is part of a bigger system and is made up of many smaller systems. A system emerges when we draw a boundary around it using a set of principles and reasoning. System Thinking principles are that of interconnectedness, synthesis, emergence, Feedback Loop, Causality and System Mapping.</p><h4>System Structure</h4><p>The system analysis starts with domain, stakeholder and requirement analysis. This gives us a list of functional and non-functional requirements for the system. Once the requirements are chalked out the architects can use frameworks like 4+1 view model architecture or C4 model or some architecture framework to uncover various view models of system. This gives us the system structure architecture. A typical system would something like below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*oUxfk9jwd-R5bAsumQ_jPQ.png" /></figure><p><em>Figure: System Diagram</em></p><p><em>Note: There are several views of a System, each view makes sense to a different kind of stakeholder.</em></p><h4>Architecture Principles and Guidelines</h4><p>Architecture principles are set of rules and guidelines which help the Architects in making decisions regarding the architecture, execution and deployment of a Software System. The Open Group describes and gives a good set of principles for our perusal. They can be referred here <a href="https://pubs.opengroup.org/architecture/togaf8-doc/arch/chap29.html">https://pubs.opengroup.org/architecture/togaf8-doc/arch/chap29.html</a></p><p><strong>Example of Architecture Principles</strong></p><p><strong>1.</strong> <strong>Business Principles</strong></p><ul><li>Primacy of Principles — The set of principles apply to all the organizations and system in an enterprise. When doing design keep the Principle First Approach.</li><li>Maximize Benefit to Enterprise.</li><li>Information Management is everyone’s business</li><li>Business Continuity</li><li>Common Use Application — Reuse IT assets and avoid Local Maximas</li><li>Compliance with Law</li><li>Protection of Intellectual Property</li></ul><p><strong>2.</strong> <strong>Data Principles</strong></p><ul><li>Data Is an Asset</li><li>Data is Shared</li><li>Data is Accessible</li><li>Data Security</li></ul><p><strong>3.</strong> <strong>Application Principles</strong></p><ul><li>Technology Independence — Application is independent of specific technology platform. Vendor agnostic</li><li>Ease of Use</li><li>Requirement Based Change</li><li>Interoperability</li><li>Elasticity</li><li>Controlling Technical Diversity</li><li>Self Serviceability</li><li>API First</li></ul><p>Thus, you can see that the architecture principle can help us in determining the System Architecture. For example, Business Continuity Principle means that we must make system more available and scalable, have redundancies in place, have robust backup and restore. Data as an Asset means that data must be managed as an asset which means we have to ensure that is of high quality, it is understood, it is accessible with right credentials, it is protected with active measures etc. Thus, we need to adopt a wholistic Data Management framework. Thus, one of first role of an architect while building a system is to come up list of agreed upon principles for creating and evolving the architecture.</p><h4>Architecture Decisions</h4><p>The first law of Architecture is that everything in Architecture is a tradeoff. Thus, architects need to be great decision makers. They need to have good understanding of business, requirements and technology to make these decisions. The architecture decisions are influenced by many factors.</p><ul><li><strong>Domain Requirements</strong> — Architects Use Domain Driven Design Principles to document and align on domain requirements based on this they arrive at use cases and scenarios for Functional/Business Architecture.</li><li><strong>Stakeholder Requirement </strong>— Stakeholders are the people who are affected by the System directly or indirectly. Stakeholders comprise of engineers, producers and consumers or system. What they say about system is important and hence one of the initial activities in uncovering System Architecture is to perform Stakeholder Analysis.</li><li><strong>Architecture principles</strong> — As explained in section above Architecture Principles helps the architects in making their decisions.</li><li><strong>Architecture Dimension/Characteristics/Attributes</strong> — These are the -ibilities of the System. They are also called Non-Functional requirements or non-requirements. Normally the architects decide on the NFRs and then align with the stakeholders on the same.</li><li><strong>Current Technology Landscape</strong> — The technology landscape changes constantly, and the architects should be up to date on the latest developments in their fields. This helps them in taking decisions regarding the technology stack of the System</li><li><strong>Common Industry Architecture</strong> — Each application type has a standard industry solution which keeps on evolving. For example we have Data Fabric Architecture for data integration needs. Architects keep themselves updated on the latest tools, processes, patterns and methodologies in field of their operations. This helps them in coming with decisions for their Architecture.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/1*c9eDXeHtsr63PHeym68Fgw.png" /></figure><p>Figure: Inputs for Architecture Decisions and Tradeoffs</p><h4>Architecture Decision making Methodologies</h4><ol><li><strong>Domain Driven Design</strong> — For aligning on domain requirements</li><li><strong>Stakeholder Analysis — </strong>For understanding stakeholder view points and include their requirements in the architecture as well.</li><li><strong>ATAM</strong> — Methodologies like Architecture Tradeoff Analysis Method (ATAM) can help the architects in uncovering domain and stakeholder requirements. Architects then do their own analysis to come up with Architecture characteristics and then using this they can come list of tradeoffs along with risk analysis of adopting an architecture.</li><li><strong>CBAM</strong> — Cost Benefit Analysis Method (CBAM) is one of the main methods Architects can use to understand cost benefit of different Architecture approaches. This can provide one the main tradeoffs points for selection of Architecture.</li><li><strong>Architecture Decision Record </strong>— Ideally the architects keep a register of all the significant decisions made for the Architecture. It helps the team members and later architects in understanding the nuances of the Architecture and can help in maintaining consistency and future evolution of Architecture</li><li><strong>Technology Radars </strong>— Like Thoughtworks Organizations can come up with their own Technology Radar which can help them in making technology choices. Refer this <a href="https://www.thoughtworks.com/en-in/radar">https://www.thoughtworks.com/en-in/radar</a></li><li><strong>5 whys method </strong>— 5 whys is an excellent method for evaluating an architecture decision. Using 5 whys one can dig deep into the decision and link it to the principles.</li><li><strong>Reference Architecture </strong>— Reference Architecture with Motivation Layer, Strategy Layer, Business Layer, Data and Application Layer is a great tool to stich it all together and make and align on decisions. Please read this for better understanding <a href="https://solutioned.com/reference-architecture-a-practical-example/">https://solutioned.com/reference-architecture-a-practical-example/</a>.</li><li><strong>Patterns </strong>— Architects should have deep knowledge of patterns. Patterns are well accepted solution to commonly recurring problems. Thus with help of patterns Architects can design a robust system and patterns become part of the architecture decisions.</li></ol><h3>Evolving a System and Evolutionary Architecture</h3><p>As the cliché goes, <strong>the only thing constant in life are the changes</strong>. The Software System also undergo a variety of change. The functionalities change, scale and usage patterns change, technology change, the user behavior change etc. Mark of a great architecture is that how it can absorb the changes and be relevant even after significant amount of time. This property of system is called <strong>evolvability</strong>. The Architectural practices relating to evolvability was discussed by Neals Ford, Rebecca Parsons, Patrick Kua and Pramod Sadalage in their book <strong>Building Evolutionary Architecture</strong>.</p><blockquote>Evolutionary Architecture consists of broad area of inquiry: mechanics and structure</blockquote><blockquote>Building Evolutionary Architecture: Part 1 Mechanics</blockquote><p>Mechanics include the engineering practices, and the measurement required for evolutionary architecture. These include processes, metrics, testing etc. Structure consists of topology of the software system. These include styles and patterns which enable the evolution of Architecture. A sneak peek into the various mechanics and structural facets leading to evolutionary architecture are as follows</p><p><strong>Mechanics</strong></p><ol><li><strong>Fitness Function Driven Development</strong> — An evolutionary architecture supports guided, incremental change across multiple dimensions. These dimensions are nothing but -ibilities of system. Each of these dimensions are measure by something called a fitness function. Once the changes are done the fitness function tests are run to ensure that over all architecture meets the KPIs set for each of the fitness functions. Example of fitness functions are metrics for unit testing, e2e testing, performance and scalability testing, security testing and other architecture, operational and process metrics.</li><li><strong>Engineering incremental changes CI/CD</strong> — CI/CD is an engineering practice which facilitates fast incremental guided changes to system.</li><li><strong>Automating Architecture Governance</strong> — Architecture Governance may include areas like legality of library and tools, software version update, auditability, code quality checks, zero downtime deployments, observability of system. These Architecture Governance areas can be treated as fitness functions and fitness function tests can be written, which can be run to ascertain that a proper Architecture Governance is in place.</li></ol><p><strong>Structure</strong></p><ol><li><strong>SOLID Design principle</strong>- Design following a proper SOLID design principle ensures that that there is low coupling between different components, well defines interface, information hiding etc.</li><li><strong>Architecture Quanta and Domain Driven Design </strong>— Architecture Quantum is an independently deployable component with high functional cohesion. Defining an Architecture Quantum using bounded context of DDD creates high cohesion in the Architecture Quantum and also reduced the connascence significantly thus creating a high evolution architecture.</li><li><strong>Architecture Styles and patterns Facilitating Evolutionary Architecture</strong></li></ol><ul><li><strong>Microservice Architecture </strong>— Microservice Architecture utilizes the bounded context to define an independently deployable service. Thus, it becomes a good architecture style to build evolutionary architecture</li><li><strong>REST Architecture — </strong>REST emphasizes having tight control on the public interface of APIs, while hiding the implementation details from client. This facilitates decoupling of client and APIs thus promoting evolutionary architecture</li><li><strong>Sidecar Pattern — </strong>Sidecar pattern is a modern cloud native pattern which isolates the orthogonal cross cutting concerns in an independently reusable dependent container alongside the main microservice container. Sidecars performs tasks like metric and log collection, network management. Ideally every service in the microservice require these functions. Thus, if every microservice implement these cross-cutting function then there will be a duplication and high degree of connoscence. For example, changing the log management would result in changing all the microservices. Sidecar containers provide a great way of isolating the cross-cutting concerns and hence helps in creating an evolutionary architecture.</li></ul><p><strong>Evolutionary Database Design</strong> — Architects should build evolutionary database design which can evolve along with changing requirement and application. So how can one build evolutionary database</p><ol><li><strong>Evolving Schemas </strong>— The schemas should be evolved in same way as the code. Which means that it should be under version control, incremental and testable.</li><li><strong>Database Per Service </strong>— This is a general microservice pattern. Many times, we see that a single database is reused for many services. This may result in tight coupling and schema changes may result in modification of multiple services. To avoid this, we can have database per service with independent bounded schema.</li><li><strong>Data Mesh Architecture </strong>— Data Mesh is about organizing the data based on domain. This provides a kind of separation between data of different domains which can then be independently evolved.</li></ol><h3>Summary</h3><ol><li>This is part 1 for a series of articles on Software Architecture</li><li>We discussed a brief history of Architecture and how it got to the current state.</li><li>We saw that discipline of software architecture getting a solid theory behind it via works of SEI institutes and pioneers like Phillipe Krutchen, GoF, Robert Martin and others1990s</li><li>Then we got a definition of what software architecture is.</li><li>Lastly, we broke the Architecture definition into multiple components like System, Principles, Decisions and Evolutionary Architecture. Then we discussed in little details what these components are and what methodologies, techniques, patterns and style we can use to design these components.</li><li>Please wait for part 2 in which we will talk about creating Architecture as a project and deliverables for the Software Architecture Project.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=127d053f342a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>