Skip to content
ImagineWorld

Edge Architectural Components

node_idnode-book_edge-computing-patterns-for-solution-architects_chapter-02-edge-architectural-components
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num2
chapter_titleEdge Architectural Components
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 2 — Edge Architectural Components

Section titled “Chapter 2 — Edge Architectural Components”

Edge computing architectures, although relatively new, have their origins in IoT architectures. There are a lot more devices in play now, some with compute and storage. These devices are key to edge computing architectures. The different sizes, form factors, the compute, and storage capacity of these edge devices make for many variations in solution architectures.

These solution architectures are unique because there are limitations at each layer, from device to compute to storage. Architects designing them often must think about the limitations, especially when it comes to the far-edge aspect. One must keep in mind the intrinsic benefits of edge computing such as low latency, high performance, less power consumption, high bandwidth, and multiple dispersed locations. Edge computing has given rise to a new paradigm of application architecture specifically designed to run in the distributed edge domain, which we call edge-native applications.

This chapter describes the four major roles of the components in an edge architecture. We then talk about the common functional and non-functional requirements (NFRs) and discuss the software and hardware components that commonly go into the creation of edge architectures. It concludes with a discussion of device architectures, data transmission protocols, and architectural decisions. The main topics are as follows:

  • Edge components
  • Functional requirements
  • Non-functional requirements (NFRs)
  • Use cases and patterns
  • Architectural decisions

There are four major roles for the edge components in an enterprise’s edge computing architecture: edge devices, the edge gateway, or server in the enterprise edge (part of the user edge’s field deployed compute), the micro data center in the Service Provider Edge’s Regional Compute, and the enterprise cloud. The edge server not only acts as a gateway to connect all edge devices in a secure manner but also allows for the management of all those devices. See Figure 2*.1*:

Figure 2.1 – Common representation of the edges in edge computing

The enterprise cloud is shown on the far right. This could be a public, private, or hybrid cloud, which is the domain of hyperscalers. To the left of it is the realm of regional compute, where the telcos or communications service providers (CSPs) operate. Next to it is the user edge (in this case, the user could be an enterprise) where the edge clusters and gateways are deployed. On the far left, IoT and edge devices are shown, including sensors, gauges, cameras, robots, and the like.

At a macro level, there are four aspects to an edge computing solution and you will see them reflected in the architecture diagrams that follow in this chapter. They are as follows:

  • Edge devices: While some IoT devices such as sensors, gauges, and actuators cannot run any software, many edge devices have some computing power and some storage. That lets them store some data and run some simple analytics. Depending on their form factor, certain edge devices have enough compute, memory ranging from 128 MB to 256 MB, and almost 1 GB of storage, which is enough to analyze the data and perform real-time inferencing without needing to send the data to a backend server or the cloud. That is what edge-native computing is all about. If they are not using ARM architecture, the devices could be x86 class CPUs equipped with one or two cores. Note that now it is possible to deploy commodity AI accelerators connected to a USB port to supplement their inferencing and analytics capabilities.
  • Edge servers: The other components in the user edge space are edge servers or edge nodes. There is a one-to-many relationship between an edge server and edge devices. Edge servers or gateways are constantly in touch with edge devices by way of agents running on the devices and are used to deploy applications onto those devices. These are typically commercial off-the-shelf (COTS) computers that could be located in a distributed facility such as a factory floor, store backroom, warehouse, or remote office. These could be ruggedized or placed in a protective enclosure. The small-sized machines have 8 cores, the medium-sized machines have 16 cores, and anything with more compute capacity would constitute a large machine. The memory in these machines starts at 16 GB RAM and they could have hundreds of gigabytes of storage. If inferencing at the device is insufficient, then data from the far-edge devices is sent to the edge server or even to the cloud for further analysis and deeper insights.
  • Regional compute or service provider edge: This edge is sometimes also referred to as the network edge or micro data center. CSPs are taking advantage of newer networking technologies to create these regional clouds or local clouds that provide software-based infrastructure services for devices to communicate with at the far edge of the network. The major selling point of the telcos is that data from the edge devices does not have to be sent to the cloud but can reside in this regional cloud, thereby reducing the distance and time that data must travel. For the end user, it means decreased latency, better bandwidth, and more security. This is especially true with the use of 5G.
  • Enterprise cloud: This is the centralized cloud that could be a public or private cloud or an on-premises data center. As is common to clouds, enterprises get unlimited compute and storage along with management capabilities, plus access to a growing portfolio of other cloud services. From an edge computing perspective, this is home to four facets: storage of most of the device data, device management at a global level, AI model building and training, and enterprise-level analytics.

Now that we have seen the major components that one finds in edge computing solutions, the next thing is to dive into some of the functional requirements that enterprises ask for.

In Chapter 1, we talked about cloud-out and edge-in paradigms. Cloud-out is where computing is taken out of the data center and brought to the far edges of the network. Conversely, the movement of the generated data from the source or the edge to a location with more computational resources for analysis is the edge-in part. Those facets drive functional requirements in an edge computing solution. We will discuss the common functional requirements of an edge computing solution in the subsequent sections.

This is where we still deal with traditional sensors (e.g., IoT/accelerometers, thermometers, or actuators) as architectural components that acquire data and help create a signal. When combining technologies such as edge and artificial intelligence (AI), you introduce new ways of designing and deploying technology, thus improving and automating situational awareness with sense-making systems. These are deployed in stores, shop floors, industrial equipment, mines, and even in vehicles.

They are often referred to as systems that have situational awareness. These sense-making systems fuse human-like thinking with sensing technologies so they can take actionable insights to augment humans in their work or help humans. Additionally, such systems can support augmented reality (AR) deployments by providing data that will be “visible” to humans working nearby. That is the core idea of these edge computing patterns. Businesses that want to create edge/IoT solutions should have a good understanding of their assets, especially their people, because that helps them in making better decisions while incorporating this newly enabled sensing technology.

Inferencing, by definition, is the act of reasoning from factual knowledge. Inferencing at the edge means providing actionable intelligence using AI-powered techniques based on the data gathered by different types of devices, such as sensors, cameras, microphones, and so on. One of the outcomes of real-time inferencing at the source of the data is a better security posture. This is because data does not have to travel too far, which reduces the attack area.

Edge analytics is the ability of machine learning (ML) models deployed on edge devices outside of the cloud or data center so that deeper analysis of the collected data can be done. The creation, training, and retraining of models are typically done on the user edge or the service provider edge.

Depending on the industry scenario involving imagery, the requirement aspects can expand to include image classification, object detection, and anomaly detection. While visual edge analytics is most obvious and common, we should point out that there are many other types of data produced by IoT-type devices that get analyzed – temperature sensors on freezers and ovens, shock and vibration analyzers on wheels and other moving parts, noise detectors to isolate certain types of noise, flow meters for liquids, pressure gauges in industrial settings, and speech and tone analysis. Collision avoidance systems in many new automobiles use multiple proximity sensors in lieu of cameras, while others use LiDAR technology.

The lifeblood of the three functional requirements mentioned so far is data. So, it behooves us to talk about data as one of the key requirements. Chapter 6 does take an in-depth view of data.

Reminders

LiDAR stands for light detection and ranging. It is a technology that uses laser light to measure the distance between objects. It is used in autonomous vehicles, astronomy, and other applications.

Whether it is audio, visual, telemetry, or sensor data, it is all about the generation, collection, movement, and analysis of data in an edge computing solution. Ensuring the data doesn’t have to travel far allows it to be analyzed more quickly. And, in case the data must be sent to an edge server, it takes less time compared to a traditional centralized cloud environment.

In any IT solution architecture, more so in edge computing architecture, the questions that solution architects are faced with are the following:

  • Where should the data be sent to be stored?
  • Where should the data be sent to be analyzed?

The solution architect must also determine whether it is critical to analyze the data at the source in real time and whether the data calls for more in-depth analysis in the future. Whether or not to store the data generated by the devices depends largely on business and jurisdictional compliance requirements.

Another view is to take a t-shirt-sized approach. Remember the footprint of the deployed applications ranges from being large to medium to small as you move away from the cloud – that is, going from right to left in Figure 2*.1*. While real-time inferencing is done by the far-edge devices, some of the deeper rules-based or even neural network-based analytics take place in the middle layers, while ML model building, training, and retraining, which require a lot more computing power, end up being performed in the layers to the right.

Reminders

Inference is coming to a conclusion based on evidence and reasoning.

Analysis is the process of methodically breaking something down to gain a better understanding of it.

Some of the common functional requirements have been discussed. There could be more, depending on the industrial use cases.

In the next section, we look at the non-functional requirements.

Edge computing architectures must satisfy several NFRs. While low latency and high bandwidth are two of the most common and obvious requirements, enterprises often list security as their most important requirement. The other NFRs are related to service management and operations.

When discussing inferencing, we mentioned that one of the outcomes of real-time inferencing at the source of the data is a better security posture since data doesn’t have to travel far, thus reducing the attack area. That said, any and all data in transit must be sent using a secure protocol. Onboarded devices could use keys, security certificates, or both. As in all IT solutions, components in an edge solution more often than not must meet regulatory, compliance, and local security standards because they deal with data. For a discussion of this topic in depth, see Chapter 6, where we cover security aspects of data in motion and data at rest.

Given that an edge computing solution can have many edge devices and that these devices could be installed in remote or hard-to-reach locations, there are specific NFRs related to service management and operations that are described here:

  • Availability: Availability is key in an edge computing architecture. The edge devices must always be available to gather or create data, and the solution must continue to operate even when there is no connectivity – that is, in a disconnected mode. It is important to eliminate all single points of failure (SPOFs) from the solution.
  • Reliability: This is the other side of the availability coin. In certain edge devices such as moving vehicles, safety-related computations must always return correct results in a predictable timeframe, even if this decreases the overall availability of the system. A device can be available but may or may not be reliable, whereas a reliable device will have high availability.
  • Latency: Because edge computing is so tightly tied to the network, you commonly hear about latency and bandwidth. Getting data from the devices and acting upon that data expeditiously is critical. Reduced latency is one of the primary requirements in any edge solution.
  • Resiliency: The ability of a system to manage itself is important. This requirement refers to internal failures as opposed to external ones. When conditions change, are the agreements between the devices and the edge hub immediately terminated or refreshed? Make sure that agents and services are always in a well-defined state.
  • Scalability: Scalability, when it comes to the number of devices deployed and the management of those devices, is usually an assumed requirement, and this can range from tens to thousands to millions of devices. Systems must be designed to handle the onboarding and deployment of any number of edge devices and edge servers. Figure 2*.2* shows the scaling going from right to left:

Figure 2.2 – Edge computing at scale

  • Maintainability: Given that there might be thousands of devices, often in remote locations, maintaining them on a regular basis becomes an important requirement. Having a planned maintenance schedule with specific maintenance scenarios addresses this requirement. But what about unplanned maintenance? One might argue that unplanned maintenance is exactly what edge solutions are designed to prevent and handle.

We’ve talked about requirements, both functional and non-functional. Remember, there may be more, depending on the use case. Let’s look at some of the common edge use cases.

Edge use cases depend a lot on the industry that is targeted. So do the related applications that get deployed on the devices that generate or collect data. While the software stack might be similar, the form factor of the devices in play will determine the size and complexity of the applications. The applications will depend on the use cases relevant to a particular industry. For example, a camera might be trained differently when acting as a security camera than one looking for welding defects on a manufacturing shop floor. The devices are similar, in that they are both cameras, but the application or workload running on them is different depending on their function.

Edge workloads are often used to describe any edge-hosted service. Any software application that has utility when running in an edge node can be described as an edge workload. Such functionality is usually delivered as microservices running in Docker containers or related container technology, but it can have other forms as well. Examples of edge services include vibration analysis, visual recognition, acoustic insights, speech recognition, and so on. Solution architects must decide on what workloads run where based on device constraints and also the data posture.

While not exhaustive, Table 2.1 captures some of the common edge use cases (see https://www.redhat.com/en/blog/edge-automation-seven-industry-use-cases-and-examples for reference):

Category

Brief description

Manufacturing operations

Automation of factory operations and quality improvement analysis, enabled by data collection from sensors, connected metrology systems, and AI. Includes root cause analysis for identification and correction of process issues.

Manufacturing quality inspection

Using visual data

Visual inspection for manufacturing plants, industrial equipment products, and transportation. Helps identify potential issues in the use and production of equipment through visual inspection of products.

Using acoustic data

Manufacturing quality inspection (AI acoustics) on the plant process floor using acoustic data for quality – for example, sounds of welds during robotic processes or sounds of motors in engine rooms indicating damage.

Asset management/ supply chain

Remote tracking, monitoring, and predictive maintenance of heavy equipment and operator network equipment, and automation of field service maintenance. Also includes remote monitoring and tracking of moveable items such as freight, food, and animals.

Public safety and emergency response

Connected systems to monitor, alert, and coordinate responses to public safety incidents and environmental issues. Includes in-car camera systems and body-worn cameras used by public safety officials.

Transportation infrastructure management

Use of sensors to enable real-time monitoring, adjustment, and maintenance of transport infrastructure, road traffic, and airport facilities. Includes the automation of public transportation systems.

Predictive maintenance and asset reliability

Using high-volume sensors, IoT, weather, and fleet data to predict reliability or optimize assets based on resource health insights from operational data and analytics. Leverages device telemetry to create a digital twin model of physical equipment.

Connected vehicles *

Connected vehicles that enable coordination with infrastructure (V2I) and other cars (V2V), deliver content through infotainment systems, and feed data to insurers. Also includes fleet management for coordination of fleets of vehicles and tracking of vehicles for security.

Smart retail

Use of real-time sensors, displays, and connectivity in and around retail stores. Enables personalized digital signage, context-sensitive in-store marketing, insights into buying behaviors at the point of sale, and monitoring and adjustment of inventories.

Smart home

Connected home systems to monitor and manage security, such as perimeter breaches, as well as other home functions such as energy usage, lighting, heating, and locks. Does not include smart utility meters, home entertainment, media devices, or gaming consoles.

Financial crime prevention

Leverage applications for preventing fraud and security lapses; Edge provides the ability to run crime checks across different regulatory boundaries – for example, international banks.

Secure healthcare systems

By deploying secure edge apps across clinic and hospital locations, medical records and other sensitive patient data are encrypted when transmitted or stored and is often anonymized when accessed by other systems and non-essential personnel.

Building automation

By leveraging actuators, sensors, and control systems in buildings to monitor and control various aspects such as HVAC, energy, lighting, and security, edge computing enhances building automation systems. While the term “smart home” covers things inside the home, building automation system (BAS) deals with the services around and about the building.

Table 2.1 – Edge use cases

* Software Defined Vehicle (SDV) builds on the connected car concept. It is a vehicle in which all the features and functions are controlled and driven by software. Whether it is the vehicle controls or infotainment system, the driver and passengers interact directly with the in-vehicle software platform (https://www.ibm.com/blog/the-software-defined-vehicle-the-architecture-behind-the-next-evolution-of-the-automotive-industry/).

The use cases are dependent on the industry and the edge devices depend on those industry use cases. In the following section, we list some of the device specifications and the data transmission protocols used by the devices.

Chapter 1 talked about the typical chip configurations used in edge computing solutions. They are listed again here for completeness:

  • x86_64 or AMD64
  • ARM32 or ARM6, ARM7
  • ARM64 or armhf, including Apple M1 and M2
  • ppc64le
  • RISC-V
  • S390x (typically running LinuxONE)

Edge device types include gauges, sensors, actuators, cameras, robots, and other IoT core devices. These days, drones and automobiles have become the ultimate device types at the edge.

Some of these devices do not have any compute or storage capacity. In those cases, the devices gather or generate data that is transmitted to the nearest edge server or gateway acting as a hub (some refer to this sector as the first mile). That data, depending on its type, can be sent using any of the different protocols that are available. Table 2.2 lists some of the common data transfer protocols we see. The protocols are listed in alphabetical order and do not distinguish between wired and software protocols. We have also included some of the legacy protocols such as BACnet and Modbus:

ProtocolDescription
BACnetBACnet is a communications protocol designed to allow communication of building automation and control systems.
Bluetooth LEBluetooth Low Energy is a wireless personal area network technology used by many modern-day devices.
HTTP/HTTPSHypertext Transfer Protocol/Secure are communications protocols that are stateless. They are the foundation of the internet.
KafkaApache Kafka is an event streaming platform used to collect, process, store, and integrate data at scale.
LoRaLoRa (Long Range) is a physical proprietary radio communication technique.
ModbusModbus is a data communications protocol for use with programmable logic controllers.
MQTTOriginally an initialism for MQ Telemetry Transport, this is a lightweight publish/subscribe machine-to-machine messaging connectivity protocol. Now there is Sparkplug from Eclipse Foundation that provides MQTT protocol, ideal for industrial automation.
ONVIFONVIF is a standard for how IP products within video surveillance and other physical security areas can communicate with each other.
OPC UAOPC Unified Architecture is a cross-platform, open source standard for data exchange from sensors to cloud applications.
RTSPReal-Time Streaming Protocol is a stateful protocol used for video contribution.
Streams over HTTPOne of many HTTP-based adaptive protocols.
WebRTCWebRTC is a combination of standards, protocols, and JavaScript and HTML5 APIs that enables real-time communications.
Z-WaveZ-Wave is a wireless communications protocol used primarily for residential and commercial building automation.
ZigBeeZigBee is a wireless technology that uses the packet-based radio protocol intended for low-cost, battery-operated devices in industrial settings.

Table 2.2 – Data transmission protocols

The block architecture diagram shown in Figure 2*.3* depicts the data flow between various edge-related components. Representative latency times between the different layers are shown in milliseconds at the top:

Figure 2.3 – A representative data flow in edge computing

The software stack in an edge solution architecture, as mentioned earlier, will vary depending on the use case, and edge use cases vary based on industry scenarios. No matter the industry, an edge computing topology involves a combination of hardware devices and software products. At the far edge, if possible, devices would run a containerized inference model in edge-native mode. These could be vision models, audio classification models, or sensory processing models. If not, the data would be sent to an inference edge server. Non-visual data, such as telemetry data and events, is typically sent to the communication layer known as the event backbone, which then would be routed to the appropriate destination. Software capable of training or retraining AI/ML models, including messaging, data, and AI-related middleware, could be aggregated, cleansed, and analyzed or stored in the next layer with more compute and storage.

As noted in Chapter 1, containers are not the only edge-native approach for isolating workloads, including inference models. Enterprises may use virtual machines (VMs), serverless functions, or even web assembly (Wasm), depending on the code base purpose or execution environment. Regardless of the chosen approach, proper automation should be employed to ensure isolation is maintained.

Solution architects are familiar with architectural decisions (ADs) when designing IT architectures. They are meant to capture key design issues and provide the rationale for selecting one of many alternatives in a solution. These decisions concern the design of a software system as a whole or one or more of its core components or connectors. They are made after considering various alternatives within a given aspect or domain.

Similarly, there are many facets that solution architects must decide on when designing edge solutions. It could be choosing the most appropriate transfer protocol to get data from a particular device, the type and location of storage, the use of private 5G versus public 5G, or the size and model of the edge server/cluster. These and other aspects must be considered before settling on a solution architecture.

Components in an edge architecture are broadly grouped into four domains that map to deployment areas. This is where solution architects have to make architectural design decisions. Figure 2*.4* shows the four component domains:

Figure 2.4 – The four decision points affecting edge architecture

Each of these domains has its own nuances and is equally important. And there are sub-domains within them, as shown in Table 2.3:

Component areaDescription and sub-domains
Cloud and dataCloud deployment model. The nature of the business and compliance requirements will dictate whether to use a private, public, hybrid, or distributed cloud. Additionally, data storage decisions will also determine data store type and size.
NetworkThe most important component. In choosing the most optimal network design, architects have to weigh cost and availability and the nature of the business. There is 4G, Wi-Fi, 5G public, or 5G private. Now there are even different types of RAN (radio access network) to choose from. That said, at times there won’t be any network connectivity, so one has to plan for disconnected operations, which is covered in later chapters.
Edge server/clusterRole and location of edge server or cluster. This determines not only the size but also the number of edge clusters/servers to deploy in order to support various devices.
Edge deviceDevice type and form factor. This determines the type of applications that can be deployed on a given device and the data transfer protocol to use.

Table 2.3 – Edge computing components

Solution architects should pay special attention to networking because of the recent advances in network technology, especially with the advent of 5G, which introduced, among other features, software-defined networking (SDN). While it is not explicitly called out, there is a cost dimension to all these ADs that could affect the final architecture.

As mentioned earlier, each of these four domains has sub-domains and decision points that can overwhelm solution architects who design end-to-end edge solutions. The crux of any AD is to justify the choice of a particular component. We have listed some of the more common ADs in the following section with the knowledge that not every decision point would be relevant to every solution architecture. Again, we go from right to left – that is, from the cloud to the devices.

The standard cloud deployment models are well-known – public cloud, private cloud, and hybrid cloud. We would be remiss to not mention the new distributed deployment model, which is described in Chapter 5. The cloud deployment model choice depends on the industry for which the edge solution is designed. As an example, the banking industry has stringent requirements on where data can be stored and even how it is stored. With such requirements in mind, the only option then is to use a private cloud.

AD #

Requirement

Factors affecting decision

C001

Cloud deployment model

A private, public, or hybrid cloud model decision must be made based on bandwidth, latency, and cost. Always consider the optimal use between a physical data center, an on-premises cloud, a public cloud, or an acceptable combination.

Data storage

No matter which cloud model is chosen, the next decision point in edge computing is about data. Architects must consider where to store different types of data. Enterprises might agree to store generic data in the cloud, but business-sensitive data may need to be stored on-premises and be encrypted.

The other key aspect is data sovereignty, which is covered in

C002

Cloud resource usage

The cloud offers unlimited resources when it comes to compute, data, and storage. Hence, it is more suited to build, train, and retrain ML models in the cloud rather than at the edge.

Data storage

Since there is so much data generated, the question of the use and storage of data and other cloud resources must be considered. It affects the deployment of ML applications and also the training or retraining of the ML models.

Table 2.4 – Cloud-related ADs

Enterprises have the choice between private networks that are highly secure, single-tenant networks, and multi-tenant carrier networks offered by telcos. With 5G technology, we have seen a rise in private wireless networks. In choosing the type of network, solution architects must take into account the use case requirements, location, and cost. To add to the complexity, there are two types of networks – overlay and underlay.

The overlay network is a virtual network that operates on top of a physical infrastructure, the underlay. This abstraction model has opened new avenues of efficient network traffic routing. These new avenues affect both north-south and east-west traffic flows.

Reminder

North-south network traffic is the data flow to and from the cloud or data center. East-west network traffic is the data flow between deployed applications, amongst the components of applications, and to other cloud services.

Figure 2*.5* shows, at a very high level, network traffic flow patterns. Prior to virtualization becoming mainstream, most network traffic would be in the north-south direction. As more applications moved to the cloud, combined with the proliferation of edge data centers and edge locations, the amount of east-west network traffic within the facility and intra-facility has outpaced north-south network traffic:

Figure 2.5 – Network traffic flow

Solution and network architects must pay close attention to southbound access interfaces of the edge computing domain because they impact the network access points and also affect the topology of the edge computing platform. Because data flow is multi-dimensional, two aspects should be considered when designing the southbound traffic management: security and futurizing the sensor network.

AD #

Requirement

Factors affecting decision

N001

Access termination technology

Coverage area, terrain, device age, and support for legacy interfaces affect this requirement.

Whether it is tens of meters or many miles, the size of coverage area will determine whether to use 4G or 5G, a public or a private network, or even Wi-Fi.

The terrain or facility construction also affects the choices. If the distance is less than 50 meters and the 4G or 5G spectrum is not available for some reason, then Wi-Fi might be the only access protocol option.

While accounting for constrained computing form factor, low power, disconnected operations, and other networking challenges, architects must be aware that many legacy devices do not support the new cellular protocols. Wi-Fi is more prevalent, and sometimes, even that is not widely deployed. This leads to a closer look at gateway devices.

N002

Edge gateway protocol

Establishing a unified stream of highly heterogeneous interfaces supporting the edge devices/sensors is critical in edge computing architectures. REST, AMQP, XMPP, MQTT, and CoAP are some very device-specific protocols out there. Which one would be most efficient in a particular scenario is something solution architects must decide.

Data transformation

Different data types generated at the edge call for different protocols and aggregation requiring data to be transformed before it can be consumed by the edge computing platform. Again, something the solution architect must decide is whether and where that should be done.

N003

Edge network domain

To design an edge solution that is efficient and cost-effective requires the application domain to adopt two things – an API-based control plane, software-defined network (SDN) or a “flat” overlay network. Additionally, this large-scale distributed application architecture must be secured while operating on constrained resources.

Edge solutions can use many microservices for different functions, from visual analytics to heat sensing. An overlay network could be used for communication between these microservices.

Which deployment domain is best suited is a question that architects must answer – Kubernetes, function-as-a-service (FaaS), or maybe even serverless?

Table 2.5 – Network-related ADs

As noted throughout the book, not all edge devices are created equal, especially when it comes to compute and storage. When IoT-type devices such as sensors, gauges, and actuators that do not have any compute or storage are part of an edge computing solution, an edge server or edge cluster is inserted and takes on the role of aggregating the data. In some cases, it is not viable to run a large ML application on the edge device, in which case that application would have to be deployed on the nearest edge server/cluster.

AD #RequirementFactors affecting decision
S001Deployment of edge servers/clustersThe use case will determine whether an edge server/cluster is required, and if so, based on the application to be hosted and the data generated, the server specification will be determined. For example, in a retail scenario, cameras, inventory scanners, point-of-sale (POS) systems, and so on deployed in a large department store would have to be managed and monitored. Depending on customer traffic, sales volume, and store inventory, the solution architect would have to decide on the number and size of edge servers to configure.
S002Edge hub locationDeciding where to place the edge hub – on-premises or in the cloud – is another key decision point. Again, it might depend on the industry use case. Typically, one edge hub is enough, but depending on the deployment topology, multiple edge hubs may be needed. For example, in healthcare and banking, industry regulations and/or government data sovereignty requirements will influence the edge hub location decision.

Table 2.6 – Compute-related ADs

We have alluded to the fact that there are many different types of edge devices – audio devices, indoor and outdoor video cameras, light and motion sensors, heat sensors, vibration monitors, pressure gauges, and other telemetry devices. An edge solution topology could have a few of these edge devices or hundreds of them. In Table 2.7, we only focus on edge devices that are equipped with some computing power and storage capacity. From a data perspective, edge solutions should support one or more of the most common data transfer protocols that were listed in Table 2.2.

AD #

Requirement

Factors affecting decision

D001

Edge device registration

To be part of an edge solution, all edge devices that have some amount of compute and storage capacity must be registered with an edge hub as edge nodes. This helps in management and monitoring. The new MQTT Sparkplug protocol includes handling the registration of devices, thus streamlining the process.

D002

Edge device data

From streaming video to telemetry data, the big question is: can the data generated by the devices be used as is, or does it need to be aggregated or cleansed? Data transformation was mentioned in one of the edge network ADs.

With AI and ML applications deployed on devices, this decision about the handling of data from these devices becomes critical.

D003

Store edge data

In one of the edge cluster ADs, it was mentioned that the decision to store or not store data depends on industry and governmental regulations and auditability reasons.

Often, all data from edge devices may not be that useful and probably does not need to be stored. If there is a choice, the solution architect might decide not to store that data because not only does transmitting all the data take time and money, but also, even data storage comes at a price.

Data security

Data security is described in the AD on security. Suffice it to say that data should be encrypted when stored and when transmitted.

Table 2.7 – Edge device-related ADs

Lastly, we must mention security, specifically edge network security, as an important AD. Security is undoubtedly a key NFR but here, we talk about addressing edge network security. While solution architects should be aware of zero trust network access (ZTNA) and secure access service edge (SASE), they must take a holistic approach toward security covering all aspects of the solution, from the cloud to the network to the devices and the applications that run on those devices. ZTNA, SASE and Edge security in general, is covered in great detail in Chapter 6.

AD #RequirementFactors affecting decision
K001Edge securityThe architect must weigh the cost and challenges of deploying a distributed edge hub topology versus a centralized topology. In the former, a local hub controls a relatively small set of devices – for example, in a store. A centralized topology is where a large edge hub controls a multitude of devices in many remote locations. This is more cost-effective but a riskier design from a security perspective. There is a security feature called perfect forward secrecy (PFS) that protects far-edge devices when transmitting data. But data encryption technology should be used so that all data is protected – data in transit and data at rest.

Table 2.8 – Security-related AD

Justifying the decisions made when designing any architecture is important for any solution architect. Many ADs were described in this section, but we are certain there will be more decisions to be made. The important thing is to document all the alternatives, the decision made, and the reason behind it.

In this chapter, we discussed the main components of an edge architecture. You learned that what makes edge architecture rather unique is the inclusion and heterogeneity of the plethora of edge devices. The typical functional requirements are few, but they are relevant and can be applied to various use cases across a whole lot of industries. We also discussed the different NFRs and their scope.

Lastly, there are many design decisions that solution architects have to make that could be overwhelming. Some of the common ADs were provided more as a starter set. We alluded to the complexity of architecting an edge solution because there are software and hardware components to account for, especially in edge-native designs. This should get architects thinking of the different aspects and domains. In the next three chapters, we will dive into the various architectures from basic to complex and provide recommended practices.