autoscale cloud function based on no. of messages in pubsub

is there a way to autoscale cloud function based on number of messages in pubsub. My understanding of scaling in cloud functions is it scales basis the usage of cpu/memory. my requirement is to parallely process very lightweight data which are huge in number.

Basically the application takes the payload from the queue and inserts to bigquery. but this needs to happen very rapidly. how can i achieve this?

1 1 187
1 REPLY 1