Writing and Deploying Interactive Applications Based on Apache Spark