Scaling Your Code
Now that we know how to interact with network devices, we should start thinking about building a solution that scales. But why do we need to scale our code? You might be thinking that the answer is obvious and it is just because it will allow your solution to grow easily as your network grows. But scaling is not just about going up but scaling down too. So, scaling your code means that you are going to build a solution that can follow demand easily, saving resources when not required and using more when required.
You should consider adding scaling capabilities adding scaling capabilities to your network automation solution before writing the code. It should be planned during design time and then executed during development time. The scaling capabilities have to be one of the requirements for building your solution. It also should be a clear milestone during implementation and testing.
In this chapter, we are going to check some techniques used today to scale...