简体   繁体   English

自动将Amazon S3文件或Google Cloud Storage中的链接添加到Google Cloud SQL表

[英]Automatically add links from Amazon S3 files or Google Cloud Storage to Google Cloud SQL table

I'm trying to create a table in Google Cloud SQL that automatically updates with embed links from files that are added to certain buckets in Google Cloud Storage and Amazon S3. 我正在尝试在Google Cloud SQL中创建一个表,该表将使用嵌入到Google Cloud Storage和Amazon S3中特定存储桶中的文件的嵌入链接自动更新。 These will eventually be embedded in a website I'm building. 这些最终将嵌入到我正在构建的网站中。 I can't figure out where to even start getting these applications to talk to each other. 我不知道该从哪里开始让这些应用程序互相通信。

I've learned enough basic mySQL to work my way around the Google Cloud SQL interface, but I'm really very new to databases, so thanks in advance for your patience! 我已经学到了足够的基本mySQL,可以在Google Cloud SQL界面周围工作,但是我对数据库真的很陌生,所以在此先感谢您的耐心等待!

Both AWS and GC have relatively straightforward mechanisms for getting bucket object event details back to a database. AWS和GC都具有相对简单的机制,用于将存储桶对象事件详细信息返回到数据库。

S3 has Event Notifications which can (among other things) trigger an AWS Lambda function to insert information about the new object into your database. S3具有事件通知 ,该事件通知可以(其中包括)触发AWS Lambda函数以将有关新对象的信息插入数据库。

GCS has Cloud Pub/Sub Notifications for Google Cloud Storage which can (among other things) trigger a Google Cloud Function to insert information about the new object into your database. GCS具有Google Cloud Storage的Cloud Pub / Sub通知,它可以(除其他事项外)触发Google Cloud Function将有关新对象的信息插入数据库。

In both environments, you can write the function for Node.js and instead of it running on servers, it's handled by automatically scaling containers. 在这两种环境中,您都可以为Node.js编写函数,而不是在服务器上运行,而是通过自动缩放容器来处理。 On AWS, there is native support for some additional languages. 在AWS上,本机支持某些其他语言。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM