Rest delivery mechanism implemented with Spark