{
  "version": "https://jsonfeed.org/version/1",
  "title": "Cloud on CafeIO",
  "icon": "https://micro.blog/akarsh/avatar.jpg",
  "home_page_url": "https://akarsh.micro.blog/",
  "feed_url": "https://akarsh.micro.blog/feed.json",
  "items": [
      {
        "id": "http://akarsh.micro.blog/2023/04/09/deep-dive-into.html",
        "title": "Deep Dive into Architecture Patterns, Part 2",
        "content_html": "<blockquote>\n<p>Deep Dive into Architecture Patterns. This Post is focused on understanding different technology stacks and their usage.</p>\n</blockquote>\n<p>This might very well be tangential to the idea of patterns, but I feel it is significant to be aware of the different technology stacks and from the core idea of patterns.</p>\n<p>A technology stack refers to a set of technologies that are used together to create a software application or system. Different technology stacks are typically named after the key technologies that they include, such as the operating system, programming language, web server, and database.</p>\n<h2 id=\"tech-stack-management\">Tech Stack Management</h2>\n<h3 id=\"some-popular-technology-stacks\">Some Popular Technology Stacks</h3>\n<p>Here’s a high-level view on some popular technology choices that we are currently presented with.</p>\n<ol>\n<li><strong>LAMP Stack :</strong> <em>Linux</em>: LAMP stack is based on the Linux operating system, which is an open-source operating system that is widely used for servers and desktops. <em>Apache</em>: Apache is a free, open-source web server software that is used to deliver web content over the internet. <em>MySQL</em>: MySQL is a popular open-source relational database management system (RDBMS) that is used to store and retrieve data. <em>PHP</em>: PHP is a popular open-source server-side scripting language that is used to create dynamic web pages and web applications.</li>\n<li><strong>MEAN Stack :</strong> <em>MongoDB</em>: MongoDB is a NoSQL document-oriented database that is used to store data in a flexible, JSON-like format. <em>Express.js</em>: Express.js is a lightweight web application framework that is used to build web applications and APIs in Node.js. <em>AngularJS</em>: AngularJS is a JavaScript-based front-end web application framework that is used to build dynamic and responsive user interfaces. <em>Node.js</em>: Node.js is a server-side JavaScript runtime environment that is used to run JavaScript on the server-side.</li>\n<li><strong>MERN Stack :</strong> <em>MongoDB</em>: Same as MEAN stack, MongoDB is used as the database in MERN stack.<em>Express.js:</em> Same as MEAN stack, Express.js is used as the server-side framework.<em>React.js</em>: React.js is a popular front-end JavaScript library that is used to build user interfaces.<em>Node.js</em>: Same as MEAN stack, Node.js is used as the server-side runtime environment.</li>\n<li><strong>MERN with Next.js Stack :</strong> <em>MongoDB</em>: Same as MERN stack, MongoDB is used as the database in this stack.<em>Express.js</em>: Same as MERN stack, Express.js is used as the server-side framework.<em>React.js</em>: Same as MERN stack, React.js is used as the front-end JavaScript library. <em>Node.js</em>: Same as the MERN stack, Node.js is used as the server-side runtime environment.<em>Next.js:</em> Next.js is a popular React-based framework that is used to build server-side rendered web applications.</li>\n<li><strong>.NET Stack :</strong> <em>.NET Framework or .NET Core:</em> .NET Framework is a free, open-source development platform for building Windows-based desktop and web applications. .NET Core is a newer version of the framework that is designed to be cross-platform.<em>C#:</em> C# is a modern, object-oriented programming language that is used to develop applications on the .NET platform. <em>Visual Studio IDE:</em> Visual Studio is an integrated development environment (IDE) that is used to develop, test, and deploy .NET applications.<em>SQL Server:</em> SQL Server is a popular relational database management system (RDBMS) developed by Microsoft.</li>\n<li><strong>Python Flask Stack :</strong> Python: <em>Python</em> is a high-level programming language that is used for web development, data analysis, and artificial intelligence. <em>Flask</em>: Flask is a lightweight web application framework that is used to build web applications and APIs in Python. <em>PostgreSQL</em>: PostgreSQL is a popular open-source relational database management system (RDBMS) that is used to store and retrieve data.</li>\n<li><strong>Django Stack :</strong> <em>Django</em>: Django is a high-level Python web framework that is used to build web applications and APIs quickly and efficiently. <em>PostgreSQL</em>: PostgreSQL is a popular open-source relational database management system (RDBMS) that is used to store and retrieve data. <em>Nginx</em>: Nginx is a high-performance web server that is used to deliver web content over the internet.</li>\n<li><strong>Java Stack :</strong> <em>Java</em>: Java is a widely used programming language that is used to develop a wide range of applications, from desktop and mobile apps to web and enterprise applications.<em>Spring Framework</em>: Spring is a popular open-source framework that is used to build web applications and enterprise-level software systems. <em>Hibernate</em>: Hibernate is an object-relational mapping (ORM) framework that is used to manage database operations in Java-based applications. <em>Apache Tomcat</em>: Apache Tomcat is a popular open-source web server and servlet container that is used to deploy and run Java-based web applications.</li>\n<li><strong>Serverless Stack :</strong> <em>AWS Lambda or Azure Functions</em>: Serverless stack is a technology stack that doesn&rsquo;t require any server management or infrastructure. AWS Lambda and Azure Functions are popular serverless computing services offered by Amazon Web Services and Microsoft Azure, respectively._ Amazon S3 or Azure Blob Storage_: Amazon S3 and Azure Blob Storage are popular object storage services that can be used to store and retrieve data in a serverless environment._ Amazon API Gateway or Azure API Management:_ Amazon API Gateway and Azure API Management are popular API gateway services that can be used to manage and secure APIs in a serverless environment.</li>\n</ol>\n<h3 id=\"factors-to-keep-in-mind-before-selecting-tech-stack\">Factors to keep in mind before selecting Tech Stack</h3>\n<p>When selecting a technology stack, there are several factors that need to be considered. Here are some key factors that should be kept in mind:</p>\n<ul>\n<li><em><strong>Project requirements</strong></em>: Consider the requirements of the project, including the type of application, the features it needs to support, and the expected usage. The technology stack should be able to support these requirements and provide the necessary functionality.</li>\n<li><em><strong>Scalability</strong></em>: Consider the scalability requirements of the project, including the expected growth of the application over time. The technology stack should be able to scale to meet the demands of the application without sacrificing performance.</li>\n<li><em><strong>Cost</strong></em>: Consider the budget for the project and the cost of the technology stack. Some technology stacks may require more expensive hardware or licensing fees, while others may be more cost-effective.</li>\n<li><em><strong>Development resources</strong></em>: Consider the skillset and experience of the development team. The technology stack should align with the team&rsquo;s expertise to ensure efficient development and maintenance.</li>\n<li><em><strong>Community support</strong></em>: Consider the level of community support for the technology stack. A strong community can provide valuable resources, tools, and support for developers, as well as ensure the longevity and sustainability of the technology.</li>\n<li><em><strong>Integration</strong></em>: Consider the integration requirements of the project. The technology stack should be able to integrate with other systems and tools as needed.</li>\n<li><em><strong>Security</strong></em>: Consider the security requirements of the project, including data privacy, regulatory compliance, and potential vulnerabilities. The technology stack should provide robust security features and be regularly updated to address new security threats.</li>\n</ul>\n<p>Overall, it is important to carefully evaluate the specific requirements and constraints of the project to select the most appropriate technology stack.</p>\n<blockquote>\n<p>Some popular technology stacks mentioned are LAMP, MEAN, MERN, MERN with Next.js, .NET, Python Flask, Django, Java, and Serverless stack. Factors to consider when choosing a technology stack include project requirements, scalability, cost, and development resources.</p>\n</blockquote>\n<h2 id=\"deployment-patterns\">Deployment Patterns</h2>\n<h3 id=\"deployment-approaches\">Deployment Approaches</h3>\n<p>The deployment options available for a technology stack depend on the specific components of the stack and the requirements of the project. However, here are some common deployment options that are available for most technology stacks:</p>\n<ol>\n<li><strong>On-premises deployment:</strong> This is a traditional deployment method where the application is deployed on hardware that is located on-site or within the organization&rsquo;s premises. This deployment method requires the organization to manage the hardware, software, and security of the application.</li>\n<li><strong>Virtual machines (VM) deployment:</strong> In this deployment method, the application is deployed on a virtual machine that is hosted on a public cloud or private infrastructure. This method provides greater flexibility than on-premises deployment and allows the organization to scale resources up or down as needed.</li>\n<li><strong>Container deployment:</strong> Container deployment involves deploying the application in a container, such as Docker, which encapsulates the application and its dependencies. This method provides greater portability, as the container can be deployed on any infrastructure that supports the container runtime.</li>\n<li><strong>Serverless deployment:</strong> In a serverless deployment, the application is deployed as a set of functions that run in a serverless computing environment, such as AWS Lambda or Azure Functions. This deployment method eliminates the need to manage the underlying infrastructure and provides greater scalability.</li>\n<li><strong>Platform as a Service (PaaS) deployment:</strong> PaaS deployment involves deploying the application on a cloud-based platform, such as Google App Engine, Heroku, or Microsoft Azure App Service. The platform manages the underlying infrastructure and provides developers with a pre-configured environment for deploying and running their applications.</li>\n<li><strong>Infrastructure as a Service (IaaS) deployment:</strong> IaaS deployment involves deploying the application on a cloud-based infrastructure, such as Amazon Web Services (AWS) or Microsoft Azure. This deployment method provides organizations with greater control over the underlying infrastructure and allows them to customize the environment to meet their specific requirements.</li>\n</ol>\n<h3 id=\"factors-influencing-deployment-strategies\">Factors Influencing Deployment Strategies</h3>\n<p>When selecting a deployment method for a technology stack, there are several factors that should be considered. Here are some key choices that should be made:</p>\n<ul>\n<li><em><strong>Scalability</strong></em>: Consider the expected traffic and usage of the application. If the application is expected to experience high levels of traffic or usage, a scalable deployment method such as serverless or container deployment may be more appropriate.</li>\n<li><em><strong>Cost</strong></em>: Consider the budget for the project and the cost of the deployment method. For example, on-premises deployment may be more cost-effective for small projects, while cloud-based deployment may be more cost-effective for larger projects.</li>\n<li><em><strong>Flexibility</strong></em>: Consider the level of flexibility required for the project. For example, if the application needs to be deployed in different environments, a container or serverless deployment may be more appropriate.</li>\n<li><em><strong>Maintenance</strong></em>: Consider the level of maintenance required for the deployment method. For example, on-premises deployment may require more maintenance than cloud-based deployment, which is managed by the cloud provider.</li>\n<li><em><strong>Security</strong></em>: Consider the security requirements for the project. For example, if the application handles sensitive data, a cloud-based deployment method may require additional security measures to ensure the data is protected.</li>\n<li><em><strong>Integration</strong></em>: Consider the integration requirements for the project. For example, if the application needs to integrate with other systems, a platform as a service (PaaS) deployment method may be more appropriate, as it provides pre-configured environments for deploying and running applications.</li>\n</ul>\n<p>Overall, it is important to carefully evaluate the specific requirements and constraints of the project to select the most appropriate deployment method for the technology stack.</p>\n<blockquote>\n<p>The section discusses different deployment approaches available for technology stacks, including on-premises, virtual machines, container, serverless, PaaS, and IaaS deployment. It also highlights the factors that should be considered when selecting a deployment method, such as scalability, cost, flexibility, maintenance, security, and integration requirements. The selection of the deployment method should depend on the specific requirements and constraints of the project.</p>\n</blockquote>\n<h2 id=\"summary\">Summary</h2>\n<p>In summary, we discussed the popular technology stacks such as LAMP, MEAN, MERN, MERN with Next.js, .NET, Python Flask, Django, Java, and Serverless stack. When choosing a technology stack, it is important to consider project requirements, scalability, cost, and development resources.</p>\n<p>Deployment approaches are also important when it comes to technology stacks. There are several deployment methods available, including on-premises, virtual machines, container, serverless, PaaS, and IaaS deployment. Each deployment method has its own advantages and disadvantages. For example, serverless deployment eliminates the need to manage underlying infrastructure and provides greater scalability. The selection of the deployment method should depend on the specific requirements and constraints of the project. When selecting a deployment method, scalability, cost, flexibility, maintenance, security, and integration requirements should be considered.</p>\n<p>In summary, the selection of the technology stack and deployment method should depend on the specific requirements and constraints of the project. It is important to carefully evaluate the project&rsquo;s needs and select the appropriate technology stack and deployment method. By doing so, you can ensure that the project is successful and meets its goals</p>\n",
        "date_published": "2023-04-09T09:00:00+05:30",
        "url": "https://akarsh.micro.blog/2023/04/09/deep-dive-into.html",
        "tags": ["Software Architecture","System Design","Cloud","Python","Solution Archtitecture"]
      },
      {
        "id": "http://akarsh.micro.blog/2023/04/02/deep-dive-into.html",
        "title": "Deep Dive into Architecture Patterns, Part 1",
        "content_html": "<blockquote>\n<p>Deep Dive into Architecture Patterns. This Post is focused on understanding requirements (Functional and Non-Functional)</p>\n</blockquote>\n<p>Architecture patterns are general, reusable solutions to recurring design problems at the system level. They provide a blueprint for organising and structuring software systems and their components, such as modules, layers, and services. Architecture patterns provide guidance on how to design and implement software systems with specific characteristics and qualities, such as scalability, performance, security, and maintainability.</p>\n<p>In the previous post <a href=\"https://www.cafeio.xyz/architecture-patterns/\">Architecture Patterns,</a> we looked at patterns from a bird&rsquo;s-eye view. Patterns, however, are the heart and soul of Architecture and warrant a much deeper conversation. In the upcoming parts (still discovering how many to write) I intend to talk about patterns in more depth.</p>\n<p>In this post, I will talk about System requirement that lead to the right pattern selection.</p>\n<h2 id=\"factors-influencing-architectural-pattern-choice\">Factors Influencing Architectural Pattern Choice</h2>\n<p>There could be a variety of factors influencing the choice of patterns. Some of the more obvious ones are listed below.</p>\n<ol>\n<li><strong>Functional Requirements :</strong> Functional requirements describe what the system should do, such as the features it must provide and the tasks it must perform. The functional requirements of a system can help determine the appropriate architecture pattern. For example, if the system needs to support multiple user interfaces, a layered architecture pattern may be appropriate, as it provides a clear separation between the presentation layer and the business logic layer. On the other hand, if the system needs to support complex business workflows and data processing, a workflow-driven architecture pattern may be more suitable.</li>\n<li><strong>Technology Stack:</strong> The technology stack used in the system can influence the choice of architecture pattern. For example, if the system is built using a specific programming language or framework, there may be architecture patterns that are better suited to that technology stack.</li>\n<li><strong>Domain Complexity:</strong> The complexity of the domain that the system is intended to model can help determine the appropriate architecture pattern. For example, if the domain is complex and involves many interacting components, a domain-driven design (DDD) architecture pattern may be appropriate.</li>\n<li><strong>Non-functional Requirements:</strong> Non-functional requirements such as performance, security, and maintainability can also influence the choice of architecture pattern. For example, if the system needs to be highly secure, a layered architecture pattern may be appropriate.</li>\n</ol>\n<p>Beyond this, I have found the following to be also a contributing factor :</p>\n<ul>\n<li>Team’s Capability (One of the Underdog in the selection)</li>\n<li>COTS products and Vendor-driven environments (Influence Security and compliance heavily)</li>\n<li>Existing IT Landscape (Data Center Setups can potentially challenge some modern patterns which are better suited to cloud)</li>\n<li>Pricing and Time To Market</li>\n</ul>\n<h2 id=\"functional-requirements\">Functional Requirements</h2>\n<p>Functional requirements are a crucial element in the development of software systems. They define what a system should do, including its features and functionality. When it comes to designing the software architecture, functional requirements have a significant impact on the selection of appropriate architecture patterns.</p>\n<p><img src=\"https://i.stack.imgur.com/NXzMw.gif\" alt=\"\"></p>\n<p>Functional requirements can determine the appropriate architecture pattern by providing insights into the system&rsquo;s features and capabilities.</p>\n<ul>\n<li>For example, if the system needs to handle complex business workflows and data processing, a workflow-driven architecture pattern may be more suitable. This pattern provides a visual representation of the workflow and ensures that the business logic is decoupled from the presentation layer.</li>\n<li>Similarly, if the system needs to support multiple user interfaces, a layered architecture pattern may be appropriate. This pattern separates the system into different layers, each with a specific responsibility, making it easier to maintain and scale the system.</li>\n<li>Another example of how functional requirements can impact architecture patterns is in the case of real-time systems. Real-time systems have stringent timing requirements and require an architecture pattern that can provide predictable and reliable performance. In this case, a microservices architecture pattern may be more suitable, as it enables the system to be broken down into smaller, independent services that can be scaled and deployed separately.</li>\n</ul>\n<p>In conclusion, functional requirements have a significant impact on the selection of appropriate architecture patterns. The selection of an architecture pattern must meet the functional requirements of the system and ensure that it is scalable, maintainable, and extensible. Therefore, it is crucial to carefully analyse the system&rsquo;s functional requirements before selecting an appropriate architecture pattern.</p>\n<h2 id=\"non--functional-requirements\">Non – Functional requirements</h2>\n<p>Non-functional requirements define the performance, security, reliability, and other quality attributes that a software system must meet. Non-functional requirements are important because they determine how well the system performs its tasks and how easy it is to use and maintain.</p>\n<p><img src=\"https://akfpartners.com//uploads/blog/NFR_PNG.png\" alt=\"\"></p>\n<ul>\n<li>One example of how non-functional requirements impact architecture patterns is in the case of performance. If a system has high-performance requirements, such as low latency or high throughput, then an appropriate architecture pattern must be selected. In this case, a distributed architecture pattern, such as a microservices architecture or a service-oriented architecture, may be more suitable, as it provides scalability and fault tolerance.</li>\n<li>Similarly, if a system needs to be highly secure, a layered architecture pattern with a clear separation of concerns may be more appropriate. This pattern separates the system into different layers, each with a specific responsibility, making it easier to secure and maintain.</li>\n<li>Another example of how non-functional requirements can influence architecture patterns is in the case of scalability. If a system needs to handle a large volume of data or traffic, then an appropriate architecture pattern must be selected. In this case, a distributed architecture pattern such as a microservices' architecture may be more suitable, as it enables the system to be broken down into smaller, independent services that can be scaled and deployed separately.</li>\n</ul>\n<h3 id=\"types-of-nfrs\">Types of NFRs</h3>\n<p>In general, NFRs are quality attributes of the system and are usually the “ity” requirements. Some of them are mentioned before.</p>\n<ol>\n<li><strong>Performance</strong>: This refers to how the system responds to a specific workload or user load. Performance requirements can include response time, throughput, and resource utilization.</li>\n<li><strong>Scalability</strong>: This refers to the system&rsquo;s ability to handle an increasing amount of work or users without affecting its performance. Scalability requirements can include horizontal scalability, vertical scalability, and load balancing.</li>\n<li><strong>Reliability</strong>: This refers to the system&rsquo;s ability to function correctly and without failure over time. Reliability requirements can include fault tolerance, disaster recovery, and backup and recovery.</li>\n<li><strong>Security</strong>: This refers to the system&rsquo;s ability to protect against unauthorised access, data theft, and other security threats. Security requirements can include authentication, access control, encryption, and compliance with industry standards.</li>\n<li><strong>Usability</strong>: This refers to how easy the system is to use and how well it meets user needs. Usability requirements can include accessibility, responsiveness, and user interface design.</li>\n<li><strong>Maintainability</strong>: This refers to how easy it is to maintain and update the system over time. Maintainability requirements can include modularity, documentation, and code quality.</li>\n<li><strong>Interoperability</strong>: This refers to the system&rsquo;s ability to interact with other systems and applications. Interoperability requirements can include support for industry standards and protocols, data exchange formats, and integration with third-party systems.</li>\n<li><strong>Compatibility</strong>: This refers to the system&rsquo;s ability to work with different hardware, software, and network environments. Compatibility requirements can include support for different operating systems, browsers, databases, and other software components.</li>\n<li><strong>Availability</strong>: This refers to the system&rsquo;s ability to be accessible and operational when required. Availability requirements can include uptime, downtime, and recovery time objectives.</li>\n<li><strong>Capacity</strong>: This refers to the system&rsquo;s ability to handle a specific volume of data or transactions. Capacity requirements can include data storage, processing power, and network bandwidth.</li>\n<li><strong>Compliance</strong>: This refers to the system&rsquo;s ability to meet legal, regulatory, and industry standards. Compliance requirements can include data privacy, security regulations, accessibility standards, and industry-specific regulations.</li>\n<li><strong>Performance efficiency</strong>: This refers to the system&rsquo;s ability to achieve performance objectives with minimal resource consumption. Performance efficiency requirements can include energy efficiency, resource utilization, and optimization of memory and processing power.</li>\n<li><strong>Testability</strong>: This refers to how easy it is to test the system and validate its functionality. Testability requirements can include support for automated testing, test data management, and traceability of test results.</li>\n</ol>\n<p>The list can be further extended, but this is a good starting point for evaluation of NFRs.</p>\n<h3 id=\"how-to-prioritise-nfrs\">How to Prioritise NFRs?</h3>\n<p>Prioritising non-functional requirements (NFRs) is critical to the success of software development projects. Here are some common prioritisation techniques for NFRs:</p>\n<ol>\n<li><strong>MoSCoW method</strong>: This technique involves dividing NFRs into four categories: Must have, Should have, Could have, and Won&rsquo;t have. The must-have requirements are the most critical, while the won&rsquo;t-have requirements are the least important.</li>\n<li><strong>Cost-benefit analysis</strong>: This technique involves assessing the cost of implementing an NFR against its benefits. NFRs with the highest benefits and lowest costs are given a higher priority.</li>\n<li><strong>Risk-based prioritisation</strong>: This technique involves identifying the potential risks associated with each NFR and prioritizing them based on their impact on the system&rsquo;s performance, reliability, and security.</li>\n<li><strong>User-based prioritisation</strong>: This technique involves prioritizing NFRs based on user needs and preferences. User feedback and surveys can help identify the most critical NFRs from a user&rsquo;s perspective.</li>\n<li><strong>Impact mapping</strong>: This technique involves mapping NFRs to the system&rsquo;s goals and objectives. NFRs that have a more significant impact on achieving the system&rsquo;s goals are given a higher priority.</li>\n<li><strong>Kano model</strong>: This technique involves categorising NFRs into three categories: must-haves, performance, and delighters. Must-haves are essential requirements, performance requirements are expected by users, and delighters are features that exceed user expectations.</li>\n<li><strong>Planning poker</strong>: This technique involves a collaborative effort where development team members discuss and estimate the priority of each NFR. This technique can help achieve consensus and ensure that.</li>\n</ol>\n<p>In conclusion, prioritisation of NFRs is a critical activity in software development. By using techniques such as MoSCoW, AHP, Cost-Benefit Analysis, Risk-Based Prioritisation, Agile Prioritisation, and Kano Model, software developers can ensure that the most critical requirements are met, and resources are allocated effectively to achieve the desired system performance, reliability, and user satisfaction.</p>\n<h2 id=\"summary\">Summary</h2>\n<p>&ldquo;Deep Dive into Architecture Patterns, Part 1&rdquo; is a comprehensive guide that delves into the world of architecture patterns. Architecture patterns provide reusable solutions to common design problems, serving as a blueprint for structuring and organising software systems and their components. The post emphasises understanding the functional and non-functional requirements when selecting the appropriate architecture pattern for a system.</p>\n<p>Functional requirements define what the system should do, such as the features it must provide and the tasks it must perform. These requirements can help determine the appropriate architecture pattern. For example, a workflow-driven architecture pattern is more suitable for systems that handle complex business workflows and data processing. On the other hand, a layered architecture pattern may be more appropriate for systems that support multiple user interfaces.</p>\n<p>Non-functional requirements, such as performance, security, reliability, and scalability, determine how well the system performs its tasks and how easy it is to use and maintain. A distributed architecture pattern, such as a microservices' architecture, may be more suitable for systems that require high-performance and scalability. A layered architecture pattern with a clear separation of concerns may be more appropriate for highly secure systems. The post also discusses the types of NFRs, such as performance, security, and maintainability.</p>\n<p>The post concludes that selecting the appropriate architecture pattern requires careful analysis of the system&rsquo;s functional and non-functional requirements to ensure that it is scalable, maintainable, and extensible. Other factors such as technology stack, domain complexity, and team capability can also influence the pattern selection. This informative guide is a must-read for developers, architects, and software engineers who are keen to learn more about architecture patterns and their impact on software design.</p>\n<h2 id=\"references\">References</h2>\n<ul>\n<li><a href=\"https://akfpartners.com/growth-blog/the-problem-with-non-functional-requirements\">https://akfpartners.com/growth-blog/the-problem-with-non-functional-requirements</a></li>\n</ul>\n",
        "date_published": "2023-04-02T09:00:00+05:30",
        "url": "https://akarsh.micro.blog/2023/04/02/deep-dive-into.html",
        "tags": ["Software Architecture","System Design","Cloud"]
      },
      {
        "id": "http://akarsh.micro.blog/2023/03/26/architecture-patterns.html",
        "title": "Architecture Patterns?",
        "content_html": "<blockquote>\n<p>Do software products follow patterns? Why is it important to think about them?</p>\n</blockquote>\n<h2 id=\"introduction\">Introduction</h2>\n<p>Human beings have a knack for finding patterns. Given clouds we tend to find shapes and faces in them, we connect the stars with imaginary lines to define autonomic shapes etc. Seeing patterns is a natural function of the human brain intended to help us learn.</p>\n<p><strong>Software products are no different.</strong></p>\n<p>**Design problems **arise during the software development process when there is a need to make decisions about the software architecture, design, and implementation.</p>\n<p>Examples of design problems may include</p>\n<ul>\n<li>Choosing the appropriate software components and technologies,</li>\n<li>Selecting the most suitable algorithms and data structures,</li>\n<li>Optimising performance</li>\n<li>Ensuring maintainability and scalability</li>\n<li>Balancing competing requirements.</li>\n</ul>\n<p>Unfortunately, these discussions are extremely common and difficult to address given that software systems are in a constant state of evolution. The subsequent decisions have to be made by balancing trade-offs between different factors, such as performance, scalability, security, maintainability, and usability.</p>\n<h2 id=\"patterns-to-the-rescue\">Patterns to the Rescue</h2>\n<p>Fortunately, for us, these design concerns have become repetitive over time and there are well established constructs that either solve them or provide a conversation ground for. These are called Architecture Patterns.</p>\n<p>In a nutshell, An <strong>architecture patters</strong> is a general, reusable solution to a recurring design concern in software architecture. It provides a standard template for solving a particular architectural concern, and it can be applied across different systems and contexts.</p>\n<blockquote>\n<p><strong>Architecture patterns</strong> are usually higher-level than <strong>Design patterns</strong> (Future Post, most likely), which focus on individual software components and their interactions. They help to ensure that software systems are designed with consistency, maintainability, and scalability in mind.</p>\n</blockquote>\n<p>By using architecture patterns, software architects can avoid reinventing the wheel for common design challenges and instead rely on proven solutions.</p>\n<p>Some examples of architecture patterns include:</p>\n<ul>\n<li>Layered architecture</li>\n<li>Client-server architecture</li>\n<li>Microservices architecture</li>\n<li>Model-View-Controller (MVC) architecture</li>\n<li>Event-driven architecture</li>\n</ul>\n<h3 id=\"layered-architecture\">Layered Architecture</h3>\n<p>also known as n-tier architecture, is a widely used architecture pattern in software engineering. It divides a software system into multiple layers, where each layer represents a different level of abstraction or functionality. The layers are stacked on top of each other, and each layer only communicates with the adjacent layers, making it easy to modify or replace individual layers without affecting the entire system. This architecture pattern provides a clear separation of concerns and facilitates the implementation of complex systems. The most common layers are the presentation layer, business logic layer, and data storage layer.</p>\n<h3 id=\"client-server-architecture\">Client-Server Architecture:</h3>\n<p>is a distributed architecture pattern where a client (user interface) interacts with a server to perform a specific function. The client sends requests to the server, and the server processes the requests and sends the results back to the client. This architecture pattern is commonly used in web applications and other network-based systems, where the client can be a web browser or a mobile app, and the server can be a web server or a database server. The main advantage of client-server architecture is its scalability and flexibility, as it allows multiple clients to access the same server concurrently.</p>\n<h3 id=\"microservices-architecture\">Microservices Architecture</h3>\n<p>is a modern architecture pattern that structures a software system as a collection of small, independent services, each with its own functionality and data storage. Each service communicates with other services using APIs and protocols, making it easy to modify or replace individual services without affecting the entire system. Microservices architecture promotes flexibility, scalability, and resilience in software systems, making it ideal for large, complex applications with changing requirements.</p>\n<h3 id=\"model-view-controller-mvc-architecture\">Model-View-Controller (MVC) Architecture</h3>\n<p>pattern for building user interfaces, web applications, and other interactive systems. It divides the application into three components: the model, the view, and the controller. The model represents the application&rsquo;s data and business logic, the view represents the user interface, and the controller manages the communication between the model and the view. This architecture pattern promotes separation of concerns and modularity, making it easy to modify or replace individual components without affecting the entire system.</p>\n<h3 id=\"event-driven-architecture\">Event-Driven Architecture</h3>\n<p>is a distributed architecture pattern where software components communicate with each other through events, such as messages, signals, or notifications. The components are decoupled and only communicate with each other through events, which are generated and consumed asynchronously. This architecture pattern promotes scalability, flexibility, and responsiveness in software systems, making it ideal for complex, event-driven systems such as real-time applications, streaming services, and messaging systems.</p>\n<h2 id=\"how-to-decide-\">How to Decide ?</h2>\n<p>Selecting the appropriate architecture pattern for a software system depends on a variety of factors, including the system&rsquo;s requirements, constraints, and expected behaviours. Here are some steps you can follow to help you choose the best architecture pattern for your project:</p>\n<h3 id=\"requirements-and-constraints\">Requirements and constraints</h3>\n<p>Understanding the system&rsquo;s requirements is essential in selecting an appropriate architecture pattern. Identify the system&rsquo;s functional requirements, such as the features, use cases, and workflows, as well as non-functional requirements such as performance, scalability, security, and maintainability.</p>\n<h3 id=\"domain-andproblem-complexity\">Domain and problem complexity</h3>\n<p>Consider the complexity of the problem domain and the overall architecture. For example, a microservices architecture may be suitable for a large, complex, and distributed system, while a simpler monolithic architecture might be more suitable for a small project.</p>\n<h3 id=\"team-expertise\">Team expertise </h3>\n<p>Evaluate your team&rsquo;s experience and familiarity with the potential architecture patterns. A pattern that your team is already comfortable with may lead to faster development and fewer mistakes.</p>\n<h3 id=\"integration-with-existing-systems\">Integration with existing systems</h3>\n<p>Consider how the new system will integrate with other systems and components, and select a pattern that will facilitate smooth integration</p>\n<h3 id=\"scalabilityand-performance\">Scalability and performance</h3>\n<p>Evaluate how well the architecture pattern will support the expected load, growth, and performance requirements of the system.</p>\n<h3 id=\"testability\">Testability</h3>\n<p>Ensure the selected pattern allows for easy and thorough testing of the system&rsquo;s components.</p>\n<h2 id=\"summary\">Summary</h2>\n<p>Architecture patterns are general, reusable solutions to recurring design problems at the system level. They provide a blueprint for organising and structuring software systems and their components, such as modules, layers, and services. Architecture patterns provide guidance on how to design and implement software systems with specific characteristics and qualities, such as scalability, performance, security, and maintainability.</p>\n<h2 id=\"references\">References</h2>\n<ol>\n<li><a href=\"https://martinfowler.com/eaaCatalog/\" title=\"Catalog of Patterns of Enterprise Application Architecture\">https://martinfowler.com/eaaCatalog/</a></li>\n<li><a href=\"https://martinfowler.com/architecture/\" title=\"Software Architecture Guide\">https://martinfowler.com/architecture/</a></li>\n</ol>\n",
        "date_published": "2023-03-26T09:00:00+05:30",
        "url": "https://akarsh.micro.blog/2023/03/26/architecture-patterns.html",
        "tags": ["Software Architecture","Cloud"]
      }
  ]
}
