---
title: "nsq-to-gs – Streaming NSQ messages directly to Google Cloud Storage"
description: "<p><a href="https://i0.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage.png"><img class="size-medium wp-image-421 aligncenter" src="https://i2.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage-300x117.png?fit=300%2C117" alt="nsq-to-googlestorage" srcset="https://i0.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage.png?resize=300%2C117 300w, https://i0.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage.png?w=328 328w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" /></a></p>
<p>In addition to my <a href="http://eran.sandler.co.il/2015/11/16/nsq-to-bigquery-stream-messages-from-nsq-directly-to-google-bigquery/">previously published</a> (very early) project to stream NSQ messages directly to BigQuery, I am happy to presents a modified version of <a href="https://github.com/chrusty/nsq-to-s3">nsq-to-s3</a> that supports streaming NSQ messages directly Google Cloud Storage.</p>
<p><strong><a href="https://github.com/erans/nsq-to-gs">Grab it while its hot from the nsq-to-gs repo</a></strong>.</p>
<p>I do see a future for a merged version of these two projects that supports both S3 and Google Cloud Storage but this would have to be enough for now.</p>"
doc_version: "1"
last_updated: "2017-06-02"
date: 2015-11-17
tags: [Code, gcs, Go, golang, google storage, gs, nsq, storage]
canonical: "https://eran.sandler.co.il/2015/11/17/nsq-to-gs-streaming-nsq-messages-directly-to-google-cloud-storage/"
---

## Sitemap

- [Home](https://eran.sandler.co.il/)

[<img class="size-medium wp-image-421 aligncenter" src="https://i2.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage-300x117.png?fit=300%2C117" alt="nsq-to-googlestorage" srcset="https://i0.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage.png?resize=300%2C117 300w, https://i0.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage.png?w=328 328w" sizes="(max-width: 300px) 100vw, 300px" data-recalc-dims="1" />][1]

In addition to my [previously published][2] (very early) project to stream NSQ messages directly to BigQuery, I am happy to presents a modified version of [nsq-to-s3][3] that supports streaming NSQ messages directly Google Cloud Storage.

**[Grab it while its hot from the nsq-to-gs repo][4]**.

I do see a future for a merged version of these two projects that supports both S3 and Google Cloud Storage but this would have to be enough for now.

&nbsp;

The current version has the same functionality as the latest nsq-to-s3 version and was adapted to support Google Storage with minor modifications (such as the default path and filename formats).

 [1]: https://i0.wp.com/eran.sandler.co.il/wp-content/uploads/2015/11/nsq-to-googlestorage.png
 [2]: http://eran.sandler.co.il/2015/11/16/nsq-to-bigquery-stream-messages-from-nsq-directly-to-google-bigquery/
 [3]: https://github.com/chrusty/nsq-to-s3
 [4]: https://github.com/erans/nsq-to-gs