Distributed systems might be complicated…luckily, the concept is easy to understand!
A distributed system is simply any environment where multiple computers or devices are working on a variety of tasks and components, all spread across a network. Components within distributed systems split up the work, coordinating efforts to complete a given job more efficiently than if only a single device ran it.
It makes sense that we’re seeing more and more distributed systems: the internet enables all of us to work remotely, and many computer jobs today are too complex for a single computer to handle them solo. This is the huge advantage — working efficiently, across geographies and teams. We wouldn’t be able to do most of this without distributed systems.
In this article, we’ll explore the operation of such systems, the challenges and risks of these platforms, and the myriad benefits of distributed computing.
Distributed systems generally consist of multiple interconnected devices or computers that work together to perform a task that is beyond the capacity of a single system. These systems work by collaborating, sharing resources and coordinating processes to handle complex workloads. (Distributed systems are the entire basis of the internet, after all.) Distributed systems are essential in situations when the workload is subject to change, such as:
Historically, distributed computing was expensive, complex to configure, and difficult to manage. Thanks to SaaS, Paas, and Iaas solutions, however, distributed computing has become more streamlined and affordable for businesses of all stripes and sizes.
Today, all types of computing jobs — from database management to video games — use distributed computing. In fact, many types of software, such as cryptocurrency systems, scientific simulations, blockchain technologies and AI platforms, wouldn’t be possible at all without these platforms.
Because they draw on the capabilities of other computing devices and processes, distributed systems can offer features that would be difficult or impossible to develop on a single system.
This includes things like performing an off-site server and application backup — if the master catalog doesn’t see the segment bits it needs for a restore, it can ask the other off-site node or nodes to send the segments. Virtually everything you do now with a computing device takes advantage of the power of distributed systems, whether that’s sending an email, playing a game or reading this article on the web.
Here are some very common examples of distributed systems:
A distributed system begins with a task. Let’s pretend you need to render a video to create a finished product.
The application (really, the distributed applications) managing this task — like a video editor on a client computer — splits the job into pieces. In this simple example, the algorithm gives one frame of the video to each of a dozen different computers (or nodes) to complete the rendering. Once the frame is complete, the managing application gives the node a new frame to work on. This process continues until the video is finished and all the pieces are put back together.
A system like this doesn’t have to stop at just 12 nodes: the job may be distributed among hundreds or thousands of nodes, turning a task that might have taken days for a single computer to complete into one that is finished in a matter of minutes.
When thinking about the challenges of a distributed computing platform, the trick is to break it down into a series of interconnected patterns. Simplifying the system into smaller, more manageable and more easily understood components helps abstract a complicated architecture. Patterns are commonly used to describe distributed systems, such as:
Different combinations of patterns are used to design distributed systems, and each approach has unique benefits and drawbacks.
There are many models and architectures of distributed systems in use today.
At this point, you might realize this: The most common forms of distributed systems today operate over the internet, handing off workloads to dozens of cloud-based virtual server instances that are created as needed, then terminated when the task is complete.
So now that we “get” what distributed systems are, we can start to assign key features to them. Here’s what good distributed systems have in common:
Before moving on further, let's discuss the advantages, risks and challenges of distributed systems.
Distributed systems offer a number of advantages over monolithic, or single, systems:
(Know the differences between CDNs & load balancers.)
Distributed systems are considerably more complex than monolithic computing environments, and raise a number of challenges around design, operations and maintenance. These include:
The challenges of distributed systems create a number of correlating risks.
(Related reading: cloud cost trends & the cost of downtime.)
Distributed deployments can range from tiny, single department deployments on local area networks to large-scale, global deployments. In addition to their size and overall complexity, organizations can consider deployments based on:
The management of distributed systems is simplified by deploying:
Distributed deployments are categorized as departmental, small enterprise, medium enterprise, or large enterprise. By no means formal, these categories are a starting point for planning the needed resources to implement a distributed computing system. Importantly, expect distributed systems to evolve over time, transitioning from departmental to small enterprise as the enterprise grows and expands.
We know clearly that, for all their benefits, distributed systems are complicated. Knowing what goes on within — the observability of that system — is a distinct advantage. Luckily, it’s one you can achieve with distributed tracing.
Without distributed tracing, a globally distributed system environment would be impossible to monitor effectively.
Distributed tracing, sometimes called distributed request tracing, is a method for monitoring applications — typically those built on a microservices architecture — which are commonly deployed on distributed systems. Distributed tracing is essentially a form of distributed computing in that it’s commonly used to monitor the operations of applications running on distributed systems.
In software development and operations, tracing is used to follow the course of a transaction as it travels through an application. An online credit card transaction as it winds its way from a customer’s initial purchase to the verification and approval process to the completion of the transaction, for example. A tracing system monitors this process step by step, helping a developer to uncover bugs, bottlenecks, latency issues, or other problems with the application.
Distributed tracing is necessary because of the considerable complexity of modern software architectures. A distributed tracing system is designed to operate on a distributed services infrastructure, where it can track multiple applications and processes simultaneously across numerous concurrent nodes and computing environments.
Administrators use a variety of approaches to manage access control in distributed computing environments. The approaches range from traditional access control lists (ACLs) to role-based access control (RBAC).
One of the most promising access control mechanisms for distributed systems is attribute-based access control (ABAC), which controls access to objects and processes using rules that include information about the user, the action requested, and the environment of that request. Administrators can also refine these types of roles to restrict access to certain times of day or certain locations.
Although there are some similarities between microservices and distributed systems, they are not the same.
The main difference is that microservices focus on flexibility and making the system modular. On the other hand, distributed systems focus on resource sharing and making the system scalable.
On the contrary, an SOA (Service oriented architecture) is a broader design approach where multiple services communicate over a network. We can consider microservices to be a well-refined version of SOA, with more focus on independent deployment and lightweight communication.
Distributed systems are well-positioned to dominate computing as we know it for the foreseeable future, and almost any type of application or service will incorporate some form of distributed computing. The need for always-on, available-anywhere computing isn’t disappearing anytime soon.
See an error or have a suggestion? Please let us know by emailing ssg-blogs@splunk.com.
This posting does not necessarily represent Splunk's position, strategies or opinion.
The Splunk platform removes the barriers between data and action, empowering observability, IT and security teams to ensure their organizations are secure, resilient and innovative.
Founded in 2003, Splunk is a global company — with over 7,500 employees, Splunkers have received over 1,020 patents to date and availability in 21 regions around the world — and offers an open, extensible data platform that supports shared data across any environment so that all teams in an organization can get end-to-end visibility, with context, for every interaction and business process. Build a strong data foundation with Splunk.