# PubSub

PubSub是Google Cloud所推出在雲端上，針對大量資料注入時候，需要的一個Buffer層，透過該服務層可以乘載無限的資料，然後串聯後面的Dataflow服務做資料的進階處理。

在PubSub的Use Case中，以IoT及Mobile的資料Gateway最為著名：

* IoT: 提供大量資料儲存的Queue服務，支援TCP/UDP協定，新版本更可支援gRPC方式，可供大量IoT設備資料匯入雲端。
* Mobile Gateway: PubSub在Publish端提供RESTful API供用戶端實作，讓手持、穿戴裝置可以簡單實作資料注入的方法，解決大資料搜集的第一線問題。

想更近一步了解PubSub:

* Developer Page: <https://cloud.google.com/pubsub/>
* Pricing Page: <https://cloud.google.com/pubsub/pricing>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gdgcloud-taipei.gitbook.io/google-cloud-platform-in-practice/google-cloud-shang-de-da-zi-liao-chu-li-fu-wu/pubsub.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
