Combining two applications into one
In the Designing scripts for composition recipe in Chapter 13, Application Integration: Configuration, we looked at a simple application that creates a collection of statistics by simulating a process. In the Using logging for control and audit output recipe in Chapter 13, Application Integration: Configuration, we looked at an application that summarizes a collection of statistics. In this recipe, we'll combine the separate simulation and summarizing applications to create a single, composite application that performs both a simulation and summarizes the resulting data.
There are several common approaches to combining multiple applications:
- A shell script can run the simulator and then run the summary.
- A Python program can stand in for the shell script and use the
runpy
module to run each program. - We can build a composite application from the essential components of each application.
In the Designing scripts...