We are designing out our listening side of Google PubSub and will be using Google Functions for this. There are two choices, push and a backend function. Push using Http and will push messages to the function. backend function uses triggering to invoke the function.
Where we are having trouble is deciding which approach may be better for our application. We have not been able to find a list of differences between these two methods within the Google documentation.
Some things we have noticed are that:
- Http function use an Expressjs structure where backend functions are only a function.
- It appears message retires is only available for backend functions.
- It isn't clear if and how dead letter queues work with backend functions.
- Are there differences between the number of messages per second which can be handled?
- So many more items we aren't thinking of to ask...
The question here is, what should be determined to help choose between an http function or a backend function for receiving PubSub messages?