App Dev: Developing a Backend Service - Python
Create and publish messages to a Cloud Pub/Sub topic.
Subscribe to the topic to receive messages in a separate worker application.
Use the Cloud Natural Language Machine Learning API and create and configure a Cloud Spanner database instance, then insert data into the database.