fixthestatusquo / proca-server

Proca server, SDKs and services
https://proca.app
5 stars 3 forks source link

subscription to changes #209

Open tttp opened 1 year ago

tttp commented 1 year ago

Hi,

we are using a mix of rabbitmq (actions), REST API (campaign), phoenix channels+graphql subscription (actionpages)

for the later, it seems there is a different protocol (also based on websockets) that is more common

absinthe_graphql_ws

but might be good to rationalise and stick to one method

how it is used:

  1. rebuild the widgets automatically when the campaigner update (graphql subscription to all widget changes)
  2. campaign change: to save on git (REST API) for all campaigns change
  3. actions: to sync to the CRM (based on organisation config) and potentially/related
    • inform the coordinator when a new organisation join a campaign
    • add to our CRM when a new user/org is added
    • inform org admins if a new user is added

it might make sense to push everything through rabbitmq for consistency

tttp commented 1 year ago

first step: