2026-08-07 13:54
Status:
Tags: IBM IBM Full Stack Software Developer Professional Certificate Software System Infrastructure Software Engineering Front End Back End
IBM - ISE - Module 4 - Software Architecture, Design, and Patterns
==Software Architecture and Design
-
Introduction to Software Architecture:
-
Software Design and Documentation take place during the design phase of the SDLC (Software Development Life Cycle)
-
It is the organization of the system
-
It servers as a blueprint for the system that is created that allows for the developers to actually interact with the code that they would be writing
-
It defines the following:
- How components interact
- Operating Environment
- And the principles used to design the system
-
It captures early onsign decisions that are costly to change once implemented
-
It also addresses the non-functional portions of the content as well, things like performance, security, maintainability, and inter-operability as well
-
It is important because it shows the earliest design decisions, allowing for a more flexible code base that can better adapt to the needed implementation. Also increasing the lifespan of the code as well by making it more maintainable
-
It guides what technology stacks are also used for the system, meaning what frameworks are used for the back end and the front end of an application.
-
They must address those non-functional capabilities, which would expressly be those things like security and performance
-
It defines the tech-stack which is generally
- Software
- Programming Languages
- Libraries
- Frameworks
-
Architects need to be aware of, and weigh, stack advantages and disadvantages based on the needs of the software and the dev team
-
Artifacts- are documents that are produced during the architecture design phase that would generally be used as blueprints that guide the stack and how it should function and operate:
-
Including the following:
- Software design document (SDD)
- Architectural diagrams
- Unified modeling language (UML) diagrams
-
Software Design Document- is a collection of tech specs regarding design implementation
-
It would have things like the design considerations, which would include things like: assumptions, dependencies, constraints, requirements, objectives, & methodologies
-
The Architectural Diagram displays components, the way that said components interact with each other, the constrained the team might be under, and the confines
-
It generally explains the architectural pattern defined within of the design, which are basically just general and reusable solutions to common problems
-
UML Diagrams are diagrams that communicate structure and behavior using common programming language and diagonstic notation they are not constrained by a single programming language, but seem to sort of be pseudo code that lets everyone know what is really going on
-
-
Software Design and Modeling:
-
Software Design is a process to document:
- Structural components
- Behavioral attributes
-
It can help to model the software to express it’s design and the overall way that it is going to work and handle most of it’s functionality
-
This can be done via things like diagrams & flowcharts, showcasing the interactions between given components and each one of their roles in the overall software
-
Although this can be done via the diagrams and flowcharts, it can also then be done via the UML documents
-
A software system can be construed as a bunch of structural elements, which helps to make a larger probelm into smaller modules & sub-modules
-
A good design has modules that are cohesive & loosely-coupled
-
Meaning that all the given modules that are cohesive have similar function, and share similar functionality to those around them
-
-
Above is a simplified billing system
-
The modules are arranged in a hierachy and are able to communicate with each other
-
they would each be different things that they would need, working together to accomplish their general task
-
The billing module is the main module, and all the other ones would be supplementary to it
-
This could be an example of what something might look like in the above mentioned documents with the models, showcasing the flow of data within of the system
-
Behavioral Models- describe what a system does, but does not explain how it does it, they communicate the overall behavior of a system without express underlying detail of it
-
There are many different UML behavior models and diagrams in general
-
Two discussed below are the State Transition Diagram & Interaction Diagram
-
UML (Unified Modeling Language)- a visual representation to communicate architecture, designing, and implementation of complex software systems
-
It is a standardized programming language that can be used throughout the entire development process
-
Generally, the two diagrams made with it are either structural or behavioral
-
It can be used no matter what programming language you use
-
The reason they are good is because they allow you to plan behaviors and structures in advance, which saves you trial and error, as well as some time and money
-
They are also good because they bring everyone up to speed on what they need to be doing, allowing for better communication and navigation of the code
-
-
The above is a state-transition diagram is showcases the different states and events that might happen in a system
-
It showcases things that might happen, and also the things that cause them to actually happen as well
-
-
The above hand is an interaction diagram is showcases they dynamic nature of a software system, showcasing different things like how multiple objects might interact
-
More specifically, it a sequence diagram and it showcases the above hand doctor scenario with respect to time
-
-
Object-Oriented Analysis and Design:
-
Object-Oriented Analysis is an approach for designing and creating a software system when the system will use object oriented programming languages to create it
-
An object contains data, and an object can perform actions that modify that inner data it holds, or external data that is passed into it
-
Basically object oriented programming, you understand how it works generally
-
There are also classes and class objects, a class is the generic version of a class object and is basically the outline and blue print for it
-
Then, there is also object instances, which exist as a means of creating a single object of that class, holding unique data that is representative and derived from that class blueprint
-
Object-oriented analysis and design is used for a system that can be modeled by interacting class objects
-
OOAD allows developers to work on specific different aspects of the same application at the same time
-
Visual UML diagrams can be made to show both static structure and dynamic behavior of a system
-
-
This is a class diagram, and generally shows the hierachly class structure that could exist in this form of a field. It basically showcases inheritance and what not as well if you really think about it
-
It also shows how the structure of an application can work in the idea of the classes and different objects, it can show things like sub-classes and the methods that they all have. Given that they also show the interactions between classes as well.
-
==Software Architecture Patterns and Deployment Topologies
-
Approaches to Application Architecture:
-
A component- an individual unit of encapsulated functionality, it servers as a part of an application in conjunction with a bunch of other components
-
Six Component Characteristics:
- Reusable: they should be designed as such that they can be reused in different applications
- Replaceable: A given component should be easily replaced with another component
- Independent: It does not have dependencies on other components
- Extensible: Should be easily extended, adding behavior to it without changing other components
- Encapsulated: it does not expose it’s specific implementation because it bundles all of it’s internal data so it cannot be read
- Non-Content Specific: Does not only work in a single environment, but works in multiple
-
Examples of Components:
- API: can be packaged as a component if it can be reused across multiple systems and applications, it could be an open source API that connects to an open database for example
- Interface for a database (Data Access Object): which switches the user to a different database without the user knowing that a switch was even made
- Controller: it is a component that determines what other kinds of components need to be called for a particular event
-
Component-based architecture - focuses on decomposing the design of larger software into these smaller logical components
-
It gives a higher level of abstraction an OOP
-
It defines, composes, and implements loosly coupled independent components so they work together to create an application
-
Services: these are designed to be deployed independently and reused by multiple systems, these would be things like apache or the given things like what I made with docker on the https://midascloud.net server
-
Services have one unique, always running instance with whom multiple different clients would communicate
-
-
SERVICES ARE MADE OF COMPONENTS, AND COMPONENTS ARE MADE OF OBJECTS
-
a service is a type of component that can be deployed independently, it can be things like: checking a customers credit, calculating a monthly loan payment, or processing a mortgage application
-
In a service-oriented architecture- loosely coupled services that communicate over a network come together to provide a functional piece of software
-
SOA supports building distributed systems that deliver services to other applications through the network communications protocol
-
-
-
A Distributed System- is a system with multiple services located on different machines, they coordinated different actions by passing on messages to each other over the internet via a given protocol like HTTP or HTTPS
-
And basically, even though the distributed system operates through a bunch of different machines, it looks like a single coherent system to the end-user
-
-
Architecture Patterns in Software:
-
Architectural Pattern- a repeatable solution to a problem in software architecture. They highlight different problems across systems and provide solutions for them
-
Two or more of these patterns can be combined, a 3-tier architecture can be made with microservices for example
-
Types of Architectural Patterns
- 2-tier
- 3-tier
- Peer-to-Peer
- Event-Driven
- Micro-Services
-
2-Tier (Client Server) computing model in which the server hosts delivers, and manages most of the sources and services delivered to the client. The client machine hosts the interface, and makes machines over to the server to request data and other such things. Generally, more than one client might be connected to the server at one given time
-
This is basically what the midascloud is
-
An Example- would be something like a messaging app, a client would request to send a text message through a server, and then the server responds by sending that message to the client
-
-
3-Tier (N Tier) is the most common type of architecture, it is composed of several horizontal tiers that function together as a single unit of software. A single layer only communicates with the layer above, or below it. This would generally be something where there is a presentation / UI for the user, an actual application they make requests to, and then a data base that handles those applications requests and manages / stores all of the data
-
An Example- would be a web application, they would use a web server to provide the user interface, an application server to then provide the user inputs, and then a database to query and show out what the user might have requested
-
-
Peer-to-Peer (P 2 P)- is a decentralized list of nodes on a given network that are both clients and servers at the same time. The workload is partitioned equally on each node, and generally works to distribute workload by sharing resources among the different nodes. It is useful for things like file sharing, instant message, and other such collaboration technologies
-
Cryptocurrency use Peer-to-Peer (look into it I guess)
-
-
Event-Driven, an event is anything that causes a change, for example a mouse click. This model focuses on the producers and consumers of these different events. Producers listen for an event, and then consumers process that information that was given out to them by the producer. It is appropriate for use with modern distributed systems
-
An Example- would be something like a Ride-Sharing app, where someone requests a ride, and then that given event shows that a consumer is given so they know to pick them up
-
-
Microservices- are an approach to building an application that breaks down the given functionality into a bunch of smaller services. This can also be what the midascloud server is if you think about it as well
-
An API is something that decides how two different services should interact with each other and how they should share given data
-
The API Gateway would route the API from the client to a service that they would want
-
An Example- would be something like social media, where a user has an account and that account can request different services like adding accounts, or viewing other people’s posts and what not
-
-
Application Deployment Environments:
-
Application Environment is the combination of the hardware and software resources that are required to run an application
-
This generally means things like the application code itself, and it’s software stack (OS, libraries, framework, etc), and any networking infrastructure or physical hardware the code runs on
-
Pre-production Environments- are those that the application resides on in various forms as it gets made into it’s full and finally complete state, common versions of these include Development, QA (Quality Assurance), and Staging
-
The Development environment is the environment under which the application is being coded, it lowkey might just be the workstation of the dev who is coding that bitch
-
The QA team tests the application’s components, is the testing environment basically. It lets them run tests and make sure the code runs correctly.
-
Staging Environment is the place that is basically as close to how the actual production environment would be like, it is meant for testing still, for small users, not general use just yet
-
Production Environment- the entire solution stack, consisting of hardware and software on which the actual software runs and is needed to run on
-
It is intended for all of the users that you want to have using your given application
-
It must take load into consideration, because it is the environment that could be used by thousands or millions of people at a time
-
It must also take into account things like security and other non-functional requirements, making it much more complicated
-
On-premises deployment- the system and the infrastructure it needs to run reside in-house, staying in the physical location of the company, under their own firewall. This is generally done if the company wants to have full access and control over the application, and a more securish environment
-
This does mean that they are responsible for everything, and that it is generally more expensive when compared to something like cloud-deployment
-
Cloud deployment- this is when you outsource the deployment of your code to the cloud, it can consist of three different things, you either have a public cloud which is where you perform IaaS and outsource your given service to another provider, letting them control the security of your data
-
There is then also private, in which you host your own cloud that is basically a multitude of different sources that are getting emulated via virtual machines, and run all of your processes on there
-
Then a hybrid, which you outsource the main stuff over to the public cloud, but keep private data on your own given cloud
-
-
Production Deployment Components:
-
-
This looks to be a representation of the 3-tiered database that exists in production deployment infrastructure. It is pretty familiar generally, especially with the load balancer / proxy which would distribute the requests from the web-servers to the app servers and what not
-
In some applications, there might not be a need for all of these, basically sometimes you might not need to split up the web and app portions of these 3-tier diagram for a still functional infrastructure
-
Firewall- a device that monitors traffic between an interior and an exterior network, allowing disallowing certain traffic to be sent in or out of either based on a set of security rules
-
It can do things like block bad traffic, malware, or hackers from coming into your given network
-
Load Balancers they distribute traffic efficiently amongst multiple servers, meaning that there is never a large overload on a single server
-
It is located between the server and the client
-
It is generally able to spin up more instances of the pre-configured server that it is distributing the balance for, allowing for even better distribution of traffic and general power resources
-
It maximizes server capabilities and responsiveness, and manages concurrent requests fast and reliably
-
Web and Application servers are either real hardware or virtual servers that provide, services, resources, data, or applications to the client that is requesting them
-
A web server in particular in generally something like the HTML file that is used to interact with the application, it can store things like images and send videos to the client as well
-
An application server on the other hand runs business logic, and provides the app to the client or the web server, meaning that the client does not need to run the app on their own machine, and is basically able to run it virtually through the web server on the given app-server hardware
-
Proxy Server- an intermediate server that handles requests between two tiers, and handles the requests between them
-
It can server a bunch of purposes, like load balancing, system optimization, obscuring unsafe requests or something that you do not want, encrypting outgoing traffic, and even scanning for malware or more
-
A database and database server is a collection of related data stored on a computer that can be accessed in various ways
-
It is generally controlled by a database management system allowing it to be connected and used by other users or programs that would need the data stored or written inside of the database
-
It controls the flow and storage of data
-
==Summary & Highlights
- Software architecture functions as a blueprint and represents the importance of a good architectural design.
- Structured design breaks down a software problem into well-organized smaller solution elements whereas behavioral models describe the behavior of the system without explaining how the system implements the behavior.
- Developing UML diagrams saves time and money by helping developers quickly get up to speed on a project, plan features in advance of coding, and navigate source code easily. Types of UML diagrams include state transition, interaction, and class diagrams.
- Objects contain data, and they also have behaviors that prescribe the actions the object can take, whereas classes are blueprints for objects.
- A service-oriented architecture (SOA) consists of loosely coupled services that interface with each other via a communication protocol over a network. Distributed systems run on multiple services on different machines, but they appear to the end-user as a single coherent system.
- An architectural pattern is a repeatable solution to an architectural problem. Types of architectural patterns include 2-tier, 3-tier, event-driven, peer-to-peer, and microservices. Two or more patterns can be combined in a single system, but some are mutually exclusive.
- Application environments include development, testing or QA, staging, and production. Production environments tend to be more complex than pre-production because they must take into account non-functional requirements like load, security, reliability, and scalability.
- Application environments can be deployed either on-premises on traditional hardware, or on public, private, or hybrid cloud platforms.
- Common components needed for a production environment include a firewall, a load balancer, web and application servers, proxy servers, and database servers.











