Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
In chapter 12, you learned how to use management tooling, designed for operations staff, to start and stop routes at runtime. Being able to programmatically control routes at runtime is also desirable. For example, you might want business logic to automatically turn routes on or off at runtime. In this section, we’ll look at how to do this.
You can start and stop routes at runtime in several ways, including these: