Have you seen Google Cloud Functions?
<a href="https:&#x2F;&#x2F;cloud.google.com&#x2F;functions&#x2F;docs" rel="nofollow">https:&#x2F;&#x2F;cloud.google.com&#x2F;functions&#x2F;docs</a><p>Disclaimer: Google Cloud Pub&#x2F;Sub engineer here.