We are considering the alternatives to PubSub, due to high costs. For some of our low-value and high-volume data the PubSub can get quite expensive.
The plan of using PubSub:
The data has a very low-value. So even if we loose some small % of it (due to pod restarts, etc) that should not be a problem.
Is it possible to write the data directly to GCS or perhaps there are other less-expensive alternatives?
Edit: just to clarify, we don't need to write the data in real-time. We can write it in batches every few minutes or so.
You can directly write data to a bucket by mounting it by using gcefuse. You can read on how you can use gcefuse within GKE by following the directions here.