As noted in the previous section, we will use two terminal windows:
- One terminal window to transmit an event
- Another terminal to receive those events
The source code for this can be found in the Apache Spark 2.3.1 Structured Streaming Programming Guide at: https://spark.apache.org/docs/latest/structured-streaming-programming-guide.html.