The Internet has changed the way applications are developed and deployed. The three-tier architecture based on a database, connected to a business logic layer, with a presentation layer on top, has become obsolete.
We endlessly repeat the mantra of Internet scale, meaning that the number of devices connecting to an application simultaneously today can crash it at any moment if it still uses the three-tier architecture. This architecture, based on a database, connected to a business logic layer with a presentation layer on top, was overused until the early 2000s and is now obsolete.
The first challenge was scalability: making an application capable of handling thousands, millions, or even billions of concurrent connections. Today, scalability is assumed for any application, even if these requirements never materialize. Scalability has now become simply a consequence of good design.
However, scalability is about how a system responds to workload spikes. One expects that if the workload doubles, the only practical action to maintain service quality is to double resources. We have numerous examples of applications serving millions of users using thousands of servers. But the demands of modern backends go beyond mere performance.
The “Mesh App and Service Architecture” (MASA) refers to the design of solutions combining mobile, online, desktop applications, and IoT devices
In one of its latest reports, “Top 10 Strategic Technology Trends”, Gartner introduced a new key term in application architecture, reflecting the forefront of IT innovation.
The “Mesh App and Service Architecture” (MASA) refers to the design of solutions combining mobile, online, desktop applications, and IoT devices together with their data, whether for end-users or operational purposes, within a network of backend services to create what the user perceives as a single “application.”
MASA introduces a new measure for architecture design: complexity. Any application that scales smoothly under heavy workloads can falter whenever a new feature needs to be added, such as a new data source or exposing another RESTful interface to one of those advanced JavaScript-based interfaces. Any issues with availability, latency, exceptions, or bugs are immediately noticed by users, whose minimum quality standards are constantly increasing. Combined with increasingly shorter development cycles, it is clear why complexity has become the new challenge.
MASA has often been cited as a reason to massively adopt microservices architecture, but this justification is misleading. Microservices architecture is a linear combination of applications following the classic three-tier architecture connected to the same network. It is an improvement, but it does not solve many of the challenges outlined above.
Microservices architecture does an excellent job of hiding complexity from frontend development, as the backend is split into components with specific functionality. However, each of these components can still become complex on its own.
Complexity is not directly managed; it is merely hidden deeper within the backend. Difficult problems cannot always be solved as a linear combination of simpler ones, and this is precisely what microservices architecture assumes.
One year ago, Nfq decided to tackle the challenge of managing complexity in architecture with PALM and pylm, its Python implementation—even before the acronym MASA appeared for the first time.
The goal of PALM is to manage complexity by allowing standard components to communicate through a more versatile communication flow. Pylm supports load balancing, message queue subscriptions, communication across multiple protocols, and many other patterns designed to seamlessly handle cases that were rare a few years ago but are now requirements for complex architectures.
Pylm is open-source software (https://github.com/nfqsolutions/pylm), can be installed with a single command on Windows, Linux, and MacOS (pip install pylm), and comes with extensive documentation (http://pylm.readthedocs.io). It is mature enough to have been put into production and will be a key component in Nfq’s future developments.