<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Case studies on António Rito Silva</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/</link><description>Recent content in Case studies 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/case-studies/index.xml" rel="self" type="application/rss+xml"/><item><title>Building Microservices @Squarespace</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/building-microservices-squarespace/</link><pubDate>Fri, 10 Nov 2017 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/building-microservices-squarespace/</guid><description>&lt;p&gt;Architectural analysis of &lt;a href="https://www.infoq.com/profile/Franklin-Angulo"&gt;Franklin Angulo&lt;/a&gt; presentation on &lt;a href="https://www.infoq.com/presentations/sqarespace-microservices"&gt;Building Microservices @Squarespace&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;The Squarespace Developer Platform enables developers to create fully custom websites and integrate them with 3rd party tools. Therefore, since Squarespace clients can write their own code, it triggers concerns about the impact that local problems may have on the complete platform. In order to avoid this undesirable behaviour, the Squarespace software architecture needs to fulfill the following availability scenario.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;&lt;strong&gt;Source of Stimulus:&lt;/strong&gt; Customized website&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Stimulus:&lt;/strong&gt; A fault in the code or operation of the website&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Environment:&lt;/strong&gt; Normal operation&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Artifacts:&lt;/strong&gt; Squarespace&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Response:&lt;/strong&gt; The impact is controled and managed in the shortest amount of time&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Response Measure:&lt;/strong&gt; Short time to detect faults and reduced impact on other websites&lt;/li&gt;&#10;&lt;li&gt;&lt;strong&gt;Tactic:&lt;/strong&gt; Migrate from a monolith architecture to a microservices architecture&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;The migration to a microservices architecture actually requires a revisit to this coarse grained scenario and look in detail at how to design a software architecture on top of which developers can customize their websites, taking advantage of the qualities provide by a microservices architecture while reducing and controling the inter-service impacts. The presentation by Franklin Angulo is about the architecture of a platform to develop microservices applications. Therefore, the main stakeholders are the developers of the microservices applications, which want to have a friendly environment where they can develop, test and run their applications, and the administrators of the Squarespace platform, which want to have the tools that help them to manage and control the interferences between the different microservices that are running in the platform. Note that the end users of the applications that run in the Squarespace platform are not direct stakeholders because the focus of the presentation is on the platform and not on the applications using it. On the other hand, due to the DevOps approach that is fostered by the microservices architecture, the developers are also administrators of their own applications once they are deployed, which means that some of the qualities the microservice cross-functional team require are the same as the required by the platform administrators, though in the scope of their own application. Anyway, for clarity, the stakeholders were divided by their role, administrators and developers, instead of by their organizational responsibilities, Squarespace platform and Squarespace applications.&lt;/p&gt;</description></item><item><title>Take Two: Evolving Microservice Architectures</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/take-two-evolving-microservice-architectures/</link><pubDate>Fri, 10 Nov 2017 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/take-two-evolving-microservice-architectures/</guid><description>&lt;p&gt;Architectural analysis of &lt;a href="https://www.infoq.com/profile/Andrew-Hart"&gt;Andrew Hart&lt;/a&gt; presentation, &lt;a href="https://www.infoq.com/presentations/evolving-microservices-architecture"&gt;Take Two: Evolving Microservice Architectures&lt;/a&gt;&lt;/p&gt;&#10;&lt;p&gt;This presentation describes the architectural evolution that occurred at SeatGeek, when it moved from doing secondary ticketing, essentially as an aggregator that integrates different markets and brokers that sell tickets which provides a user friendly interface, to a primarily responsible ticketing for US sports events.&lt;/p&gt;&#10;&lt;p&gt;The relevant stakeholders are the users, that intend to have a good user experience when using the system and which require acceptable performance and availability, the developers, that want to reduce the cost of change when adding new functionalities and integrating with other systems, the business people that want to grow the business by buying other software ticket vendors and integrate them with the main SeatGeek software as well as to allow third parts to integrate in the SeatGeek ecosystem. Therefore, the main qualities are usability, modifiability and interoperability. Additionally, deployability and availability are also important because of the DevOps characteristics of the development process that SeatGeek embraces. Note, however, that the first set of qualities is specific of SeatGeek business whereas the second set is more general and may apply to all systems that provide services through the internet, that may be subject to period of heavy load, and where time to market is such an important goal that the development team is in charge of providing and monitoring the service. It is, actually, the second set of qualities that justifies the need for a microservices architecture.&lt;/p&gt;</description></item><item><title>The Journey to Microservices from a Startup Perspective</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/the-journey-to-microservices-from-a-startup-perspective/</link><pubDate>Thu, 09 Nov 2017 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/the-journey-to-microservices-from-a-startup-perspective/</guid><description>&lt;p&gt;Architectural analysis of &lt;a href="https://www.infoq.com/profile/Susanne-Kaiser"&gt;Susanne Kaiser&lt;/a&gt; presentation, &lt;a href="http://www.infoq.com/presentations/startup-microservices"&gt;The Journey to Microservices from a Startup Perspective&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Just Social is an application that fully integrates collaboration and communication in organizations by providing functionalities for social network, document sharing, task management and real-time collaboration.&lt;/p&gt;&#10;&lt;p&gt;The developer stakeholders want to evolve and change the system in a timely manner, modifiability quality, in order to achieve a time to market quality. This business quality is raised by the Just Social business managers, which are also relevant architectural stakeholders.&lt;/p&gt;</description></item><item><title>Continuous Integration</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/continuous-integration/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/continuous-integration/</guid><description>&lt;p&gt;&lt;a href="http://aosabook.org/en/integration.html"&gt;Continuous integration systems&lt;/a&gt; are responsible for the building and testing of applications in a context where it takes a long time. Developers do unit tests, which should take a few seconds maximum, in their development machines, but delegate the integration tests, which may take several hours, to a dedicated server. Additionally, the continuous integration server can automatically build the application to different platforms and test it, for example to test an Android application in different device simulators.&lt;/p&gt;</description></item><item><title>DVD's Catalog, a toy example of modularity</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/dvds-catalog-a-toy-example-of-modularity/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/dvds-catalog-a-toy-example-of-modularity/</guid><description>&lt;p&gt;As an example of the modularization process let us consider a simple case of a personal DVD Catalog system that is responsible to store a personal collection of DVDs, support search, track borrowing, and allow to import the DVD&amp;rsquo;s information from external sources like &lt;a href="http://www.amazon.com/"&gt;Amazon&lt;/a&gt; and &lt;a href="http://www.imdb.com/"&gt;IMDb&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Given this description of responsibilities, the initial decomposition is trivial. It follows a reduce size tactic and may split the system into four main modules, one for each responsibility; manage collection, search, borrowing, and import. Eventually another module may be identified due to the need to keep the information persistent, a data access module. Note that the need for an explicit data access model depends on the technology that is going to be used. For instance, in the case of a traditional enterprise application that uses different technologies to store data and to business logic execution it may be relevant to have a well-defined interface that encapsulates details of data access from the business logic (encapsulate tactic).&lt;/p&gt;</description></item><item><title>Graphite</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/graphite/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/graphite/</guid><description>&lt;p&gt;The &lt;a href="http://aosabook.org/en/graphite.html"&gt;Graphite&lt;/a&gt; system architecture stores data points into files, called metrics, and generates graphs from those files.&lt;/p&gt;&#10;&lt;p&gt;The main quality supported by the Graphite system is performance. Let&amp;rsquo;s consider the following sentence from the document:&lt;/p&gt;&#10;&lt;p&gt;&lt;em&gt;Imagine you have a dashboard with 10 graphs in it and the page refreshes once a minute. Each time a user opens the dashboard in their browser, Graphite has to handle 10 more requests per minute. This quickly becomes expensive.&lt;/em&gt;&lt;/p&gt;</description></item><item><title>Infinispan</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/infinispan/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/infinispan/</guid><description>&lt;p&gt;&lt;a href="http://aosabook.org/en/posa/infinispan.html"&gt;Infinispan&lt;/a&gt; can be seen as a cache enriched by processing power which takes advantage of concurrency, non-blocking IO and lock-free primitives to provide high performance. Therefore, it enhances the multiple copies of data tactic (cache) with the massive parallelization of activities that read and write in-memory entries.&lt;/p&gt;&#10;&lt;p&gt;Its main quality is performance, due to the introduction of massive concurrency and aggressive scheduling of resources, but it requires a programming model that can take advantage of algorithm parallelization, like &lt;a href="https://en.wikipedia.org/wiki/MapReduce"&gt;MapReduce&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Nginx</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/nginx/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/nginx/</guid><description>&lt;p&gt;The &lt;a href="http://nginx.org/"&gt;Nginx&lt;/a&gt; web server was design with the intent to solve the &lt;a href="https://en.wikipedia.org/wiki/C10k_problem"&gt;C10K&lt;/a&gt; problem, support 10.000 simultaneous connections. The &lt;a href="http://aosabook.org/en/nginx.html"&gt;Nginx software architecture&lt;/a&gt; describes how this goal was achieved.&lt;/p&gt;&#10;&lt;p&gt;This performance quality drives the design of the architecture which is rooted in an event system that processes the client request without blocking and using less resources. For instance, the Apache solution associates a process or a thread to each request, which results in a more simple programming model, and so less error prone, but that requires more resources, at least a thread per request being processed. That&amp;rsquo;s the reason for the C10K problem:&lt;/p&gt;</description></item><item><title>Scalable Web Architecture and Distributed Systems</title><link>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/scalable-web-architecture-and-distributed-systems/</link><pubDate>Sun, 29 Nov 2015 00:00:00 +0000</pubDate><guid>https://antonioritosilva.github.io/software-engineering-companion/software-architecture/case-studies/scalable-web-architecture-and-distributed-systems/</guid><description>&lt;p&gt;In the &lt;a href="http://aosabook.org/en/distsys.html"&gt;Scalable Web Architecture and Distributed System&lt;/a&gt; article Kate Matsudaira does a good overview of the qualities and solutions to scalable web applications. In the following analysis I use the SEI Software Architecture &lt;a href="http://www.sei.cmu.edu/architecture/start/glossary/index.cfm"&gt;terminology&lt;/a&gt;, mainly, I&amp;rsquo;ll distinguish a module, a unit of implementation, from a component (connector), a unit of execution. I will also describe the architecture using several views, which can be of type module, component-and-connector, or allocation.&lt;/p&gt;&#10;&lt;p&gt;The article does not describe a particular system but it does a systematic enumeration of the mechanisms today&amp;rsquo;s highly scalable systems use. The article has three parts: the first part identifies the qualities web applications should have; the second describes different architectural configurations to achieve the scalability quality; and the third part details mechanisms that are pervasive in today&amp;rsquo;s highly scalable systems and that improve performance and availability.&lt;/p&gt;</description></item></channel></rss>