我正在使用GCP Pub子主题将特定事件存储在我的应用程序中,然后根据主题订阅的自定义代码fire,以处理DB Transactions调用到我的数据库。除了Storr在我的OLTP数据库中记录的订阅外,我还希望每个主题的另一个订户将JSON对象推入云数据存储实体。最简单的方法是什么?我可以在不编写自定义代码的情况下完成此操作吗?
I'm using GCP pub sub topics to store specific events in my applications and then have custom code running based on topic subscriptions fire to process db transactions calls to my database. Aside from the subscriptions that storr records in my OLTP database I'd also like another subscriber for each topic to push the JSON object into Cloud datastore entities. What is the easiest way to do this? Can I accomplish this without having to write custom code?
发布评论
评论(1)
可能对您有用。因此,这个问题提供了一些有关使模板运行的提示:可以使用DataFlow?可以将数据从pubsub传输到数据存储
The Dataflow template for moving data from Pub/Sub to Datastore may work for you. This SO question provides some tips on getting the template running: Is it able to stream data from pubsub to datastore using dataflow?