<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Software Architecture on António Rito Silva</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/</link><description>Recent content in Software Architecture on António Rito Silva</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 30 Nov 2026 18:58:29 +0000</lastBuildDate><atom:link href="https://antonioritosilva.github.io/software-engineering-companion/software-architecture/index.xml" rel="self" type="application/rss+xml"/><item><title>Business Logic and Scale</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/business-logic-and-scale/</link><pubDate>Thu, 17 Dec 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/business-logic-and-scale/</guid><description>&lt;p&gt;There is an interesting tension between applications&amp;rsquo; business logic and their scalability and on top of this tension consistency is the quality that is traded-off.&lt;/p&gt;&#10;&lt;p&gt;For a system to scale in a word-wide environment it is necessary at some point to partitioning the persistent data. That is the main idea behind the &lt;a href="https://en.wikipedia.org/wiki/Shared_nothing_architecture"&gt;shared-nothing architecture&lt;/a&gt; and the &lt;a href="http://martinfowler.com/articles/microservices.html"&gt;microservices architecture&lt;/a&gt;. While the former partitions data into shards that are independent and self-sufficient, the initial role of partitions in the latter is to enforce modularity and support a product-centered view of software development by &lt;a href="../../software-engineering-companion/project-management/team-organization/"&gt;cross-functional teams&lt;/a&gt;. In both cases, the interaction between the nodes, in the shared-nothing architecture, and the interactions between microservices, in the microservices architecture, is non transactional, due to the cost of a two phase commit protocol, and the applications need to rely on a weaker consistency model.&lt;/p&gt;</description></item><item><title>Architecture Validation</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/architecture-validation/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/architecture-validation/</guid><description>&lt;p&gt;Validating a software architecture can be as demanding, in terms of time and resources, as validating the final system itself. Fortunately, most of the systems are variations of existing systems that use proven architectures. Very often, once the architect decides on the software architecture, she can find technologies that support that architecture and benchmarks on their qualities, like performance, scalability, etc. For instance, for web application there are a set of frameworks, like &lt;a href="https://www.playframework.com/"&gt;Play&lt;/a&gt;or &lt;a href="https://www.djangoproject.com/"&gt;Django&lt;/a&gt;, that can be used to support the architecture and implement the system. However, when the system requirements push the existing technology to the limits it is necessary to design software architectures that need to be systematically validated, though, fortunately, it occurs in an iterative process where the limits are identified on a need basis. For instance, the first architecture for Facebook is different from the current architecture, and it would be difficult to design the current architecture from scratch, it is more feasible to do it through several evolutionary stages.&lt;/p&gt;</description></item><item><title>Concrete Requirements</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/concrete-requirements/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/concrete-requirements/</guid><description>&lt;p&gt;The &lt;em&gt;raison d&amp;rsquo;être&lt;/em&gt; of a software architecture is to promote the reasoning about the system. To do so two aspects should be addressed: (1) concrete requirements; and (2) precise properties associated with the architecture elements and relations.&lt;/p&gt;&#10;&lt;p&gt;To describe concrete requirements we have to avoid vague references to the performance of a system or its ability to deal with change. To strive for concreteness, a good rule of thumb is to associate a functional behaviour with the non-functional quality. For instance, when a student is executing a course enrolment&amp;rsquo;s transaction it should not take more then 1 second. In this case we state what is the particular functionality and the level of quality it requires, complete in less than 1 second. But, is this specification concrete enough? Well, it depends. It is the architect&amp;rsquo;s role to ask questions to verify it. Does the enrolment functionality occurs more often in a particular period? Suppose that the stakeholders tell him that there is an enrolment period where most of the enrolments occurs. Then, he can ask how many enrolments occur during this period. With this fresh information the software architect may restate the requirement to: &lt;em&gt;during the one week enrolment period, where up to 40000 enrolments occur, each enrolment should not take more than 1 second&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Design and Architecture</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/design-and-architecture/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/design-and-architecture/</guid><description>&lt;div style="position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"&gt;&#10;&#9;&#9;&#9;&lt;iframe allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share; fullscreen" loading="eager" referrerpolicy="strict-origin-when-cross-origin" src="https://www.youtube.com/embed/rpNAhuTuzfw?autoplay=0&amp;amp;controls=1&amp;amp;end=0&amp;amp;loop=0&amp;amp;mute=0&amp;amp;start=0" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;" title="YouTube video"&gt;&lt;/iframe&gt;&#10;&#9;&#9;&lt;/div&gt;&#10;&#10;&lt;p&gt;The software architecture is the system high design, but when does high design finish and starts the detailed design?&lt;/p&gt;&#10;&lt;p&gt;To answer this question it is necessary to define the architecture&amp;rsquo;s goal: It establishes the systemic qualities of a software system and these qualities have to support the system stakeholders&amp;rsquo; needs. These needs are associated to how stakeholders perceive the system, and correspond to non-functional requirements, like the system level of availability, its performance, in terms of number of transactions per second or the duration of a transaction, time to market, how long does it take to implement the system, etc.&lt;/p&gt;</description></item><item><title>Enterprise-wide applications vs World-wide applications</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/enterprise-wide-applications-vs-world-wide-applications/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/enterprise-wide-applications-vs-world-wide-applications/</guid><description>&lt;p&gt;Enterprise-wide applications provide services to a community where a few thousands, maybe hundreds of thousands, users use the application to achieve some business goals. These &lt;a href="http://martinfowler.com/bliki/EnterpriseApplication.html"&gt;enterprise applications&lt;/a&gt; are characterized by Martin Fowler as containing a large amount data which is simultaneously accessed by users through a set of operations that implement complex business logic. To guarantee the consistency of data these kind of systems use a transactional architecture which ensures the ACID (Atomicity, Consistency, Isolation, and Durability) properties for the operations executed by users. From a software engineering point of view transactional architectures are very convenient for developers because they can focus on the business logic of the application and ignore the infrastructural aspects resulting from the simultaneous access by users. Therefore, developers can code each operation as it will execute in isolation.&lt;/p&gt;</description></item><item><title>From the Mainframe to the Cloud, back and forth</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/from-the-mainframe-to-the-cloud-back-and-forth/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/from-the-mainframe-to-the-cloud-back-and-forth/</guid><description>&lt;p&gt;The software architectures of choice have being evolving in cycles, like fashion, driven by two competing forces, hardware capabilities and software complexity. Basically, increase of the hardware capabilities push for simpler software models which become again more complex as they try to tackle new problems. It is interesting to analyse this cycle from a software architecture viewpoint to uncover the factors that drive software architectural design.&lt;/p&gt;&#10;&lt;p&gt;A good example is the move in the last 40 years, from the mainframe architecture to the cloud architecture.&lt;/p&gt;</description></item><item><title>Modifiability by example</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/modifiability-by-example/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/modifiability-by-example/</guid><description>&lt;p&gt;The architectural quality of modifiability of a system defines de cost of change of the system: how long it will take and how many resources it will be necessary to change a system.&lt;/p&gt;&#10;&lt;p&gt;Often seen as a static quality of the system, which impacts on the change of code, it is not necessarily like this. The change can occur when the system is built, for instance through the parameterization of the build script, or at initialization time, for instance by using a configuration file to decide which &lt;a href="https://en.wikipedia.org/wiki/Abstract_factory_pattern"&gt;concrete factories&lt;/a&gt; should be created. Ultimately, it can also occur during runtime, for instance the end user decides the change the configuration of her dashboard.&lt;/p&gt;</description></item><item><title>Software Architecture and Agile Approaches</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/software-architecture-and-agile-approaches/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/software-architecture-and-agile-approaches/</guid><description>&lt;p&gt;Software architecture is the design decisions that are done upfront and that it will be costly to change once the software is being developed. Therefore, it is important to do a detailed requirements elicitation and analysis to identify what are the desired system qualities. How does it fit with an agile approach, where it is emphasized that the structure emerges from a set of implemented cases? Is architecture and refactoring inconsistent? Maybe on paper, but in reality there are several nuances.&lt;/p&gt;</description></item><item><title>Usability by example</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/usability-by-example/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/usability-by-example/</guid><description>&lt;p&gt;Is usability an architectural quality? Does the easiness on how users do their tasks has an architectural impact, such that it has to be considered during the design of the system software architecture?&lt;/p&gt;&#10;&lt;p&gt;Let&amp;rsquo;s start by considering one aspect that seems far fetched from having any impact on the architecture: the colors used in the interface. The use of the right colors may improve the usability of a user interface but should the architect worry about it?&lt;/p&gt;</description></item><item><title/><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/annotated-reading/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/annotated-reading/</guid><description>&lt;p&gt;(1) &lt;a href="https://blog.twitter.com/2014/building-a-complete-tweet-index"&gt;Building a complete Tweet index&lt;/a&gt; by Twitter Team&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;On the application of the pipe-and-filter architectural pattern to build a system that processes a stream of hundreds of billions of Tweets.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;(2) &lt;a href="https://blog.twitter.com/2015/handling-five-billion-sessions-a-day-in-real-time"&gt;Handling five billion sessions a day – in real time&lt;/a&gt; by Twitter Team&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;The description of a software architecture for a reliable and highly performant system.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;(3) &lt;a href="http://martinfowler.com/bliki/DataLake.html"&gt;Data Lake&lt;/a&gt; by Martin Fowler&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Looking at big data from a software engineering perspective&lt;/li&gt;&#10;&lt;li&gt;Some requirements:&#10;&lt;ul&gt;&#10;&lt;li&gt;Never loose data, which means that it should not be filtered, aggregated or cleaned.&lt;/li&gt;&#10;&lt;li&gt;Separate operational from analytical systems, data is immutable and operational systems should not communicated through the lake&lt;/li&gt;&#10;&lt;li&gt;Separate competences, data scientist work on the lake and specialized applications are built on the lake shore&lt;/li&gt;&#10;&lt;li&gt;Security (confidentially) of the data in the lake is an open problem&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;(4) &lt;a href="http://martinfowler.com/articles/microservices.html"&gt;Microservices&lt;/a&gt; by Martin Fowler&lt;/p&gt;</description></item></channel></rss>