Skip to content

Starter kit for a basic message passing setup with gcf

Notifications You must be signed in to change notification settings

128f/gcp-message-passing

Folders and files

NameName
Last commit message
Last commit date
Apr 2, 2023
Apr 2, 2023
Apr 2, 2023
Apr 2, 2023
Apr 2, 2023
Apr 2, 2023
Apr 2, 2023
Apr 2, 2023

Repository files navigation

A diagram illustrating the below description

Message passing architecture

Contains some example code for receiving, processing, and sending text messages from twilio, as well as a terraform module for getting it up and running.

  • client sends/emits messages - (text, discord, ...)
  • the Receiver service processes them into a work queue
  • the work queue is emptied by the Worker service
  • the Sender service formats them into the preferred output format

This is a very flexible building block for small asynchronous workflows. Components can be combined, duplicated, or outright replaced as needed. For instance, twilio is not strictly necessary (I may replace this version with one using Discord in the near future), and the sample python code can be adapted or replaced.

Getting started

  • sign-up for a twilio account, get a number and account credentials
  • create your project in google cloud provider and authorize the necessary apis
  • login by doing something like gcloud auth application-default login
  • fill out cloud/variables.tfvars with the required variables
  • run terraform apply -var-file=variables.tfvars
  • Setup incoming messages webhook in twilio to the url of the receiver that was output in the previous step

About

Starter kit for a basic message passing setup with gcf

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published