Designing and Building Edge Software
local graph
Chapter 3 — Designing and Building Edge Software
Section titled “Chapter 3 — Designing and Building Edge Software”Having established the core assumptions we made about Edge computing in Chapter 1 and 2, we will now build on that by focusing on a set of key areas of importance for a successful Edge deployment.
General-purpose processing architectures, the Linux operating system, and containerized workloads are all fundamental to Edge computing. We will uncover the implications and rationale for those ingredients in this chapter. More importantly, we will put them in the context of the overall topological and architectural assumptions that underlie Edge computing. Finally, we will discuss the various roles and responsibilities we can find in successful production Edge deployments.
In this chapter, we’re going to cover the following main topics:
- Sample Edge computing infrastructure
- Roles and responsibilities in successful production Edge deployments
- The best-practice enterprise architecture for Edge-native solutions
Technical requirements
Section titled “Technical requirements”As with the rest of this book, this chapter will be better understood if you have skills in any of the general-purpose processing architectures based on x86 (Intel or AMD), ARM, and/or RISC-V, any of the common Linux operating system distributions, and any of the OCI-compliant container runtimes, such as Docker 1, Podman 2, or Kubernetes 3.
It is also helpful to have an Edge solution in mind – either something you are already working on or something that you are planning to build and deploy in your enterprise. If you don’t already have a project, then at least get familiar with the sample Edge solution that was discussed in Chapter 14, Building a Real-World Example Application, so that you have something to work with.
Sample Edge computing infrastructure
Section titled “Sample Edge computing infrastructure”We’ve already established that general-purpose processing architectures, Linux, and containers are fundamental ingredients to Edge computing. Let’s put that into a little more context.
Recall the different tiers of Edge computing that we discussed in the The Edge computing ecosystem section in Chapter 1 – that is, far Edge – Edge devices, far Edge – Edge servers, network or metro Edge, and cloud Edge. In summary, the far Edge is the premises where your enterprise conducts its actual business. If you’re in retail, this could refer to your physical stores where customers make purchases, your warehouse or distribution center for storing and distributing products, or even the trucks you use for shipping those products. If you’re a manufacturer, the far Edge is the factory where you build products. If you’re a bank, it’s the branch offices and ATMs where customers do their banking.
Within that, an Edge device is any piece of equipment that has been built for a particular purpose, with its functionality controlled by software executing on a general-purpose processor inside that equipment. This could be a point-of-sale terminal, hand-held scanner, smart camera used to detect spillages, spoilage, or shrinkage, a digital display, such as a shelf label, refrigerator, HVAC controller, a re-stocking robot, or a smart shopping cart, just to name a few examples in the retail industry.
In the industrial sector, automated conveyor systems, forklifts, or other materials handling equipment, robotics, quality-inspection cameras, sorters, stackers, pumps, compressors, computerized numerical control (CNC) and other milling machines, safety and other personal protection equipment (PPE), and handheld terminals are all examples of Edge devices that may be found at the far Edge.
The following figure shows just a small sampling of various Edge devices on the market today. All of these devices have built-in general-purpose processors and run software to control their functions and behaviors:
Figure 3.1 – A sampling of Edge devices available in the market today
Any of these Edge devices likely embed an ARM or RISC-V, or perhaps an x86 processor, running Linux 4. The software running on these Edge devices is most often associated directly with the purpose of these devices. A POS device will have the software needed to check out a customer’s purchase, including applying the appropriate sales tax and discounts. The software on a shelf label display will indicate the product information and price at that location on the shelf. The software on a robot will control its movement and safety.
However, in many of these cases, the open-endedness of the device architecture may lend itself to other functions as well. For example, the POS terminal may have been enhanced so that it provides specialized offers to the client at the point of sale or assists the sales associate in answering questions the customer may have about their product or how to better meet their needs.
A camera set up at an endcap in the store to monitor for stock outages may be updated to also provide security checks for anyone entering the stock room that happens to also be in that camera’s field of view.
Typically, a given site may have dozens, if not hundreds or even thousands, of Edge devices. Due to their numbers and as a consequence of their relatively targeted functional capabilities, Edge devices have comparatively small amount of compute capacity to help keep their per-unit costs low. An ARM or RISC-V processor with 1 GB of RAM and 16 GB of storage is prototypical of these devices 5.
5 At least at the time of writing. As with all things in the computer industry, processors continue to get cheaper, faster, and bigger over time.
Many of these devices are mobile – carried by workers on the floor, or attached to carts, mobile robotics, or materials-handling vehicles. Even if the device isn’t mobile, there may be so many of them that the cost of cabling network connectivity can be quite high, if not physically difficult. Consequently, it is common for these devices to be wirelessly connected to the local network. Up until recently, these devices would have been connected to a local Wi-Fi wireless access point. However, with the advent of 5G cellular, especially private 5G networks, it may be even more economical to connect through a telco-provider network.
Further, at the far Edge, you will likely find Edge servers. These might include store controllers in the retail industry, or programmable logic controllers (PLCs) in the industrial sectors. Again, keep in mind that most operational technology (OT) equipment manufacturers are now building their OT equipment using general-purpose IT processors and software within their equipment. The OT and IT worlds are melding. The tasks for building, maintaining, and enhancing OT systems can now be performed with common IT tools and methods.
Most Edge servers are built with x86 architecture processors from either Intel or AMD and again using Linux. In general, Edge servers are just common, off-the-shelf IT servers in a variety of form factors. Edge servers are sometimes placed in a machine room or closet at the far Edge site, perhaps in the manager’s office, or are put right on the production floor. Regardless, these locations are rarely “clean room” environments – certainly nothing equivalent to the raised-floor, air-conditioned, and dust-free environment that you would normally find in an enterprise or cloud data center.
Edge servers may be in industrially hardened cases to protect them from dust, vibration, and temperature extremes that may be a part of the unprotected environment where they are placed. Sometimes, they’re just in brick or pizza-box containers, standard tower cabinets, or perhaps a half or full computer rack. The size and capacity of the Edge servers at the far Edge will vary based on a variety of factors. Typically, there are trade-offs between the cost of the equipment, the space available at the far Edge location, and the amount of compute power needed at each location.
In some cases, an enterprise may be severely restricted on the amount of compute capacity they can place at the far Edge. Some telcos and CoLo vendors, such as Equinix, US Signal, and CoreSite, can provide an alternative that is good enough for many scenarios. These institutions offer Compute-as-a-Service in metro locations that may not be far from your far Edge location. You can think of these as miniature cloud data center locations, but they typically offer 15-50ms latencies from your business operations sites. We generally refer to these at network or metro Edge locations.
If your workloads can handle the slightly longer latencies associated with compute that may be several kilometers away, the network or metro Edge has the additional advantage that you may be able to share this compute capacity among all your business sites in that same general locale. A fast-food restaurant chain, for example, might share a single network or metro Edge service in the same city. This bundling of compute power will typically be offered by the service provider as an elastic Cloud service, thus providing some economies of scale. This may not be as cheap as hyperscale cloud computing, but it will do so with substantially less latency than having to go back to your Coud provider.
While Edge devices are typically network-connected to workloads hosted in Edge servers or perhaps in virtual servers in the network or metro Edge location, in either case, these will typically also be connected to even larger, more centralized services hosted in an enterprise or Cloud data center.
Thus, you can think of the combination of Edge devices, Edge servers, servers in the network or metro Edge, and the enterprise or Coud data center as a multi-tiered distributed computing system. All these tiers work collectively to host and operate the overall Edge solution.
General-purpose processing architectures
Section titled “General-purpose processing architectures”Previously, we stated that Edge computing is distinguished from earlier forms of embedded systems through its use of general-purpose processing architectures. By this, we mean things such as x86, ARM, and RISC-V architecture microprocessors 6. This is important because it both reflects the economic shifts that are happening in this industry and empowers the entire community of software programmers and engineers to participate in delivering value to the very edges of their business – to the workers and salespeople on the front line of business.
6 We should note that, while not commonly found in Edge solutions, Power (RISC) systems and System-Z (mainframe) computing architectures qualify as general-purpose architectures and may play a significant role in the topology of the Edge solution.
ARM-based chips dominate in the Edge device space – primarily because these processors inherently require less power and are cheaper to obtain in bulk quantities. RISC-V is vying to take on a prominent role in this space – a bid that took on more urgency when NVIDIA attempted to acquire ARM in 2020 7 – and is likely to appear more often in the future.
On the other hand, x86-based chips (primarily from Intel and AMD) dominate the Edge server and network- and metro Edge spaces.
In either case, compilers are readily available for all the major popular programming languages for any of these architectures. Any software can be made to run on any of these architectures simply by re-compiling.
Specialized processing architectures
Section titled “Specialized processing architectures”Notwithstanding the trend toward using general-purpose architectures at the Edge, AI is driving interest in other processing architectures specialized for the unique computational demands of machine learning. The most prevalent of these specialized architectures is the graphical processing unit (GPU) architectures available from NVIDIA, AMD, Intel, Qualcomm, and others.
These chips are commonly provided as co-processors to the primary general-purpose CPU. Leveraging these co-processors for machine learning can be enabled by enabling drivers such as CUDA, AGS, OpenCL, OpenVINO, and others.
Over the next few years, we are likely to see a whole new generation of specialized chips for AI based on neuromorphic computing principles 8. These chips promise to make Edge device computing even more powerful, requiring even less energy (thus benefiting battery life and overall operating cost), and opening up even more functional utility.
8 See https://research.ibm.com/projects/neuromorphic-computing for more information about this emerging technology.
The Linux platform
Section titled “The Linux platform”In line with the trend of general-purpose processor architectures is the trend to use Linux in all these Edge (and Cloud) tiers. The rationale behind Linux is simple: its open source roots have enabled a vibrant community of contribution and safety that are working collectively to ensure the operating system is robust, secure, and optimal. Furthermore, it has been highly specialized to the needs of enterprise organizations – with just the right amount of functionality, and no more. Several vendors have licensed open source to deliver well-supported distributions, each further optimized for specific enterprise markets.
The key commercial Linux distributions in the Edge computing space include Red Hat, Ubuntu, and SUSE. In addition, there are several community-backed distributions, including Debian, Fedora, Arch, and Gentoo.
At one point, Microsoft tried to leverage Windows in the Edge computing space, but that proved to be too heavy-weight, too cumbersome, and too expensive to maintain and so has largely become irrelevant in the Edge computing space 9. Vestiges of this effort are mostly being migrated to Linux now.
9 https://www.itprotoday.com/linux/rise-linux-edge-computing-and-iot
The container runtime
Section titled “The container runtime”Nearly all deployments of Edge solutions now are based on containers that use an OCI-compliant 10 container runtime such as Docker, Podman, or Kubernetes.
10 https://opencontainers.org/
Containers are important in the Edge because of the following reasons:
- You can run one or many containers in the same device or server with the confidence that each will remain isolated from the others. A failure in one container will not affect any other container running on that same device.
- Containers are secure. One container cannot communicate with any other container unless explicitly permitted and therefore cannot be subverted by other malicious containers.
- Containers are lightweight. While each container is allocated a private set of resources (isolated from any other container) the kernel services responsible for allocating those resources are virtualized over a common, shared operating system kernel. This isolation is achieved without having to duplicate the entire operating system in its own virtual space.
All of these attributes are key to enabling Edge devices and servers to operate efficiently in the highly resource-constrained environments that are typical at the far Edge.
The Docker runtime is the most common container runtime in Edge devices. The Docker runtime is itself lightweight. More importantly, Edge devices are typically dedicated to supporting a particular purpose associated with the device’s function. For example, cameras are typically used to perform visual activities, point-of-sale terminals are typically used to perform sales-related activities, and ATMs are typically used to handle banking transaction activities. These are not general-purpose IT servers. Their workloads are dedicated to the end user or purpose for that device and will not benefit from being clustered.
Other OCI-compliant container runtimes, such as Podman 11, are also relevant to Edge devices – again because they offer the benefits of container support but without the overhead of cluster management. However, at this point, Podman is primarily only used with Red Hat Enterprise Linux (RHEL).
Edge servers in the far Edge, and other servers in the network or metro Edge, on the other hand, almost always run Kubernetes.
Using Kubernetes in these environments is important as it enables elastic scaling and clustering of the available resources across the many containers that may be hosted in these locations.
Roles and responsibilities in successful production Edge deployments
Section titled “Roles and responsibilities in successful production Edge deployments”Like any enterprise IT project, Edge computing solutions are a team sport. It requires participation and collaboration between multiple roles. We recognize that different-sized projects will require different-sized teams – ranging from just one person for very small projects up to potentially several people for larger systems. For that reason, in this section, we won’t address the appropriate size of the team and instead focus on the range of roles and their responsibilities, irrespective of whether those roles are performed by a single person, or those roles are spread across a whole team of people.
Software engineering
Section titled “Software engineering”Software is the lifeblood of any Edge solution. All your normal Cloud-native software development practices apply, so if you have those skills, you are already most of the way there. We will discuss the core differences between Cloud-native and Edge-native software development later in this chapter. For now, we will just focus on a couple of attributes of the software engineering role in an Edge solution.
Your Edge solution will likely want to either customize the functionality of your Edge devices or at least access sensors in your far Edge environment – the most common of these being video cameras from which you can leverage computer vision. If not a camera, you may need to access data from other sensors – including sound or voice, temperature, humidity, wind speed, pressure, moisture, ambient light, door position, vibration, weight, infrared (as a specific variation of vision), liquid and gas chemicals, electrical, electromagnetic radiation (that is, radio signals or other magnetic pulses), nuclear radiation, GPS, gravity, and so on. This list is only limited by your imagination and business needs.
This requires that you know how to access your device or sensor. Universally, any of the sensor data or devices that you want to use will come with a device driver or some other access-method software. The software engineer will be responsible for accessing these drivers and learning how to use them.
Of course, and as usual, the software engineer will need to know the requirements of the application that you’re trying to create, as well as how to translate those requirements into a system design while following the best practices of enterprise architecture. We’ll discuss these later in this chapter.
AI/ML training (data science)
Section titled “AI/ML training (data science)”The most common Edge solutions leverage AI or ML. This depends on whether a model has been trained to enable AI/ML to make predictions (that is, perform recognition tasks).
While the software engineer will be responsible for implementing an appropriate AI/ML algorithm for the task being performed by the solution, the data scientist is responsible for selecting an appropriate algorithm and training the model. This role complements the software engineer but is an entirely separate and distinct role. The selected algorithm will usually come with tools for training the model. These tools are intended to be used by the data scientist.
The most important responsibility of the data scientist is to collect and curate the data that will be used to train the model. For example, if the solution is intended to perform a visual analysis of a video camera feed to detect spillage in a factory or retail store, the data scientist will be responsible for collecting images of various spills with any of the different chemicals and quantities that are possible. These images should capture different situations – for example, with and without people in the area, different materials in the vicinity, different locations, and different lighting – anything that represents the variations that are likely to occur.
As a general rule, the more data (example images, in this case) the AI/ML is trained with, the more accurate it will become at detecting that situation. Often, getting the data is the hardest part of the task, so it is common that a solution will be deployed with a partially trained model, achieving a certain level of accuracy. That minimum threshold will vary depending on the business criteria of the solution, but with modern deep learning -based AI/ML algorithms, it is typical to expect around 85-95% accuracy from an initial model.
However, training is an ongoing process. Almost all business scenarios will want to improve the accuracy of the model over time. More importantly, accuracy will likely drift over time – meaning the accuracy that’s achieved at one point in time may degrade as conditions in the real world change. For example, the thing you are looking for in the image may get upgraded, its packaging might be changed, or the lighting conditions in which it occurs may shift.
For this reason, the AI/ML data scientist should expect to continue to collect data and perform re-training tasks periodically for the life of the solution.
Just as importantly, the use of AI/ML over the last decade has revealed how easy it is to introduce bias in the training data – either by inadvertently over-training for one situation or under-training for other situations that no one is thinking of. Fortunately, there are several good tools on the market to help identify bias in training data. See https://www.ibm.com/blog/shedding-light-on-ai-bias-with-real-world-examples/ for more information on this topic.
The data scientist is ultimately responsible for ensuring the model is free of bias and keeping the final model secured from malicious attempts to subvert the accuracy of its predictions.
Infrastructure provisioning
Section titled “Infrastructure provisioning”The Edge environment is unique in that it is, by definition, not confined to the four walls of a protected data center. Building out the infrastructure for Edge computing generally does not have the benefits of a raised floor, specialized power supplies, conditioned air, a loading dock for receiving IT equipment, and highly skilled IT professionals to set it up.
When you provision the Edge environment, you may contract with specialists to set up and mount things such as video cameras and other sensors, or other large, specialized equipment such as ATMs and POS terminals. But for the most part, the equipment will be set up by workers in those far Edge locations with very limited to no IT skills.
To provision the Edge servers in a retail store, it is likely the machines will be set up in advance at a central warehouse, and then bulk-shipped out to the store manager. Their primary task will be to unbox the server, plug it into a wall outlet and an Ethernet port, and power it on. The machine needs to be able to power up, connect to the enterprise network, authenticate itself, and start working, without any further intervention from local staff.
Setting up the machines before they’re sent out to ensure they can be authenticated and will boot up without further local intervention is the role of a provisioning engineer. In some sense, this is a specialization within the operations team.
Further, it is important to recognize that if something goes wrong in the field – even if it is months after the initial installation – there are no specialized IT skills in these locations to diagnose or remediate the problem. If a machine malfunctions and cannot connect to the network, that machine may be rendered inoperable – that is, bricked. The provisioning engineer needs to plan for how to handle these situations as well.
Software and model deployment
Section titled “Software and model deployment”Once the hardware, alongside its operating system and network connectivity, has been established, you will need to load those devices along with the software and, if that software includes AI/ML algorithms, the trained models they depend on.
We’ve already discussed how models are constantly being updated and need for them to be pushed back out to where they’re being used. The software is the same. The point of using an Edge device or server is so that its functionality can be improved over time. Those updates may not happen as often as model updates, but they occur often nonetheless.
The task of deploying software is made more complex due to several factors, including the following:
- The same software can run on many different devices and servers and at different locations.
- Different devices and servers may use different processing architectures. The software compilation must match the processing architecture of the machine on which it will run.
- The software may have specific dependencies – such as any GPUs or other specialty processors it may depend on, access to certain sensors, or minimum resource requirements (RAM or storage, for example).
- Customizations might need to be made in specific locations or geographies. Store or factory managers may have the authority to condition certain functionality at their own site, or certain geopolitical regulations may require or even limit certain functionality, for example.
- Different sites may operate on different schedules, with different procedures, or with different operating demands or capacities. Different stores may have different floor spaces and several POS terminals, may or may not have a deli, or cater to a different set of product demands, for example.
- Different locations may have different generations of hardware, overall space, topological structure, or compute capacity.
- The economics of compute within the far Edge location versus access to the network or metro Edge service available in that geography may vary in different regions.
- The frequency of updates for different software applications, or the importance of some applications over others, may vary and may change over time.
The deployment manager is responsible for managing the deployment of software and AI/ML models to the Edge – including Edge devices and servers, as well as network or metro Edge servers – while factoring in all the variations that make this task complicated.
Fortunately, the LF Edge Open Horizon project is designed specifically to manage this complexity. The rest of this book will teach you how to use it to manage your deployments effectively.
Before we dive any further, we must establish some of the best practices for architecting Edge-native solutions.
The best-practice enterprise architecture for Edge-native solutions
Section titled “The best-practice enterprise architecture for Edge-native solutions”Let’s discuss some of the best practices for architecting Edge-native solutions.
Start with Cloud-native
Section titled “Start with Cloud-native”At its core, Edge-native is Cloud-native. Edge-native embraces all the principles that have made constructing modern Cloud solutions successful.
First and foremost is the principle of microservices – that is, to build each service as a component running as a container. Services are loosely coupled, compact, and self-contained. They are idempotent, isomorphic, reentrant, and restartable.
In addition, microservices should be created using Agile development practices to enable them to evolve rapidly to changing requirements. DevSecNetOps practices should also be applied to ensure they are secure, interconnected through the enterprise network, can be deployed using A/B scoping techniques, and rolled back rapidly when necessary.
Note that none of this is new. So, if you’re already practicing Cloud-native principles, you have a solid start.
The distinction between Cloud-native and Edge-native is relatively modest – mostly recognizing that the Edge is made up of both Edge devices and Edge servers, with the latter at both the far Edge as well as network or metro Edge locations.
As we discussed earlier in this chapter, there are a variety of considerations that will affect the location where different services may be deployed. These choices may vary from location to location, and over time. Therefore, Edge services must be constructed to be agnostic to their deployment location, including whether they are deployed in a single-instance Container runtime (such as Docker or Podman) or a multi-instance cluster using Kubernetes.
Since certain Edge services will have been written for specific sensors, any dependencies those services have on specific sensors or other resource types must be declared externally as part of the service metadata. We will discuss how to do this later in this chapter, and in more detail later in this book.
The separation of algorithmic logic and ML models
Section titled “The separation of algorithmic logic and ML models”It is certainly technically feasible to include the logic of an analytics algorithm and the AI/ML model on which it depends in the same container, deployed as a single unit. However, given what we discussed earlier about how much more frequently models are updated, it is much better practice to separate the algorithmic logic from its model. The algorithmic logic should be included along with other programming artifacts of the Edge service in a container. The model, then, should be held in a separate file and stored in a model repository.
In this way, when a model is retrained it needs to be redeployed. The container that contains the algorithmic logic will remain in place and continue to operate even as the model is being updated. Thus, these updates can be made without disrupting the functioning of the device.
This separation has other benefits as it also allows the same algorithmic logic to be deployed in different devices or locations and conditioned with different versions of the model.
For example, if you are trying to use visual recognition to detect stack outages, you may have different cameras placed on different aisles – one on the cereal aisle and one on the pasta aisle, for example. Both cameras are trying to use the same basic logic – to determine if stock is low or out and to inform the stockers to replenish that stock. However, the camera on the cereal aisle can be conditioned with a model that has been trained to recognize different types of cereal, and the other camera can be conditioned with a model that’s been trained to recognize different types of pasta. By specializing each of these models to a smaller range of products, they will both be more compact, and their accuracy will be improved.
The Open Horizon deployment system understands this separation and will ensure the right model is deployed along with the container that depends on it. We’ll discuss this further in Chapter 11, AI/ML Workload and Model Deployment.
Conditional location independence
Section titled “Conditional location independence”As discussed previously, Edge services should be developed so that they’re agnostic to where they’re run. This is key to enabling deployment decisions to be made very late in the cycle and updated as needed to accommodate a variety of changing conditions and priorities. We refer to this as location independence.
In a given store, you may have a set of smart cameras with an ARM chip and 2 GB of memory. For this store, it may make sense to deploy the inventory recognition service directly on the camera, sending outage alerts to the stock replenishment service hosted on a server running in the back of the store.
In another store, you may have a set of older “dumb” cameras, so you must run the video analytics services on a shared server in the store.
In yet another store, you may have the latest generation smart cameras but have an older generation server with limited capacity for running stock replenishment services. However, that store may be within the vicinity of a metro Edge where that stock replenishment service can be run on behalf of all the stores in that metro area.
Across these three different stores, your retail institution has different deployment requirements. Further, while the smart cameras may be running with an ARM processor architecture, the servers are likely running with an x86 processor architecture. More importantly, these stores may be updated over time with more (or, perhaps, less) capability, thus changing the deployment requirement over time. You should write your software so that it accommodates these variations. You should also compile your services for the range of different processor architectures on which you will potentially deploy those services.
That said, in practice, there will be limitations to this flexibility. Some of your services may have strong dependencies on specific sensors, or strict latency requirements that tightly constrain the physical distances between the sensor input and where the data is processed. The deployment manager must be informed of these constraints so that they can factor them into their deployment conditions. These constraints must be externally declared in metadata that the deployment manager can access.
We will discuss how Open Horizon codifies this metadata and makes use of it to automate deployment decisions in Chapter 10, Managing Edge Scale with Policy-Based Workload Placement.
Autonomous deployment
Section titled “Autonomous deployment”If this is your first Edge solution, you will likely begin by experimenting with one or two Edge devices and an Edge server in a single location. Deployment in these environments is relatively straightforward – perhaps you will SSH to your devices and servers and use Docker or Kubernetes commands to pull the container images from your favorite container repo, and then kick them off running.
These steps will get repetitive as you update and refine your service. It will be tempting to just automate these steps using a script as you continue your development cycle or begin to add a few more devices and servers.
However, you will find that as you get closer to production deployment – adding in hundreds or even thousands of devices at tens or hundreds of locations while factoring in all the different processor architectures and location variations, balancing out resource priorities, and more – the scripts you build for deployment will become increasingly complex and brittle. This will be exacerbated as you try to consider all the threats that can exist at the edge – the vulnerability of your software packages and models as they’re transmitted over the network, the potential for someone to spoof a particular device address, or to subvert any secrets (such as API keys) your services depend on.
And, of course, that’s all before changes start being made to the underlying infrastructure on which you depend at different locations at different times.
It is key that you automate the deployment process using a deployment manager such as Open Horizon. The deployment manager must operate autonomously to consider all the variations in your system and factor that against the constraints of your service implementations and operating priorities, and to do so in real time. You should incorporate this into your DevOps activities from day one so that it can grow with you as you scale out your solution during development, and then move that into your production environment.
Edge connectivity
Section titled “Edge connectivity”As we have already established, the Edge is not contained in your enterprise or cloud data center. The Edge is out there – where you conduct your business. Nonetheless, the Edge needs to have connectivity to the services in your enterprise or cloud data center and be connected through your enterprise network.
What does that mean? Unless you can afford to build out a private network infrastructure – laying down cables and switches, along with IP management, traffic management, and outage recovery, or commissioning a telco to do that for you – you will need to put a virtual-private overlay network in place. A virtual-private overlay network is just software running at your far Edge and central enterprise or cloud data centers (and points in between if you’re leveraging network or metro Edge sites). This software creates encrypted tunnels that will protect and route your enterprise data traffic securely and optimally over whatever underlying public or private network infrastructure you have in place.
IBM’s Hybrid Cloud Mesh is a good example of a virtual-private overlay network 12.
12 https://www.ibm.com/products/hybrid-cloud-mesh
However, note that a virtual private overlay network is made of software at the endpoints – that is, at the Edge and in the enterprise and/or cloud data centers. This software is essentially a set of gateway services that are deployed as containers. They are deployed to the Edge in the same way as any of your application containers – using Open Horizon.
There is a symbiotic relationship between the Edge and enterprise connectivity. Your enterprise connectivity (in the form of a virtual private overlay network) is deployed to the Edge like an application. The Edge depends on the virtual private overlay network to provide secure enterprise connectivity back to your data centers.
More importantly, virtual private overlay networks such as the IBM Hybrid Cloud Mesh operate efficiently by creating unique tunnels for each deployed application – including your Edge applications. These tunnels are created whenever an application shows up at a particular endpoint and destroyed when that application goes away from there. Thus, the autonomous deployment principle that we discussed previously should be integrated into your enterprise networking system to ensure it knows when applications are deployed and un-deployed from your Edge locations.
Summary
Section titled “Summary”The success of deploying your Edge solution in production will be greatly enhanced if you understand the key roles, responsibilities, and proven enterprise architecture principles of other successful Edge projects. In this chapter, we provided you with some examples of the infrastructure typically employed in other Edge solutions. Then, we outlined the key roles and responsibilities that build on and extend those found in successful cloud-native solutions. Finally, we outlined the most important best-practice enterprise architecture principles that will be essential for you to factor into your project.
In the next chapter, we will delve deeper into the various container platforms that you may use in your Edge solution –Docker, Podman, and Kubernetes. We will explore their distinctions and the trade-offs each offers for different Edge computing situations.