Sending frontend messages to a queue

I want to be able to have front ends send messages to a queue, that queue gets popped by a backend rust app, then the rust app updates firestore which notifies the front ends of the state management

There’s technically a service called PubSub in google cloud (which is Firebase is a part of) however I don’t think you can use it from the frontend so your flow would be more like:

• frontend makes request to cloud function
• cloud function adds thing to queue
• queue triggers more cloud function(s)
• cloud functions process the information
I use this pattern extensivelly