A simple example using Apache Spark and MongoDB