简体   繁体   English

我应该如何在 Flutter 中集成 Amazon RDS? 任何原生飞镖支持包?

[英]How Should I integrate Amazon RDS in Flutter? Any native dart support package?

how to use AWS RDS in flutter dart code?如何在flutter dart代码中使用AWS RDS?

I went through - this post It says -我经历了-这篇文章它说-

I work on the AWS SDK team.我在 AWS SDK 团队工作。 I am not aware of any plans to support Flutter at this point.目前我不知道有任何支持 Flutter 的计划。 I will take this to my team as a feature request and will post back我会将此作为功能请求提交给我的团队,并将回发

Should I do as suggested here? 我应该按照这里的建议做吗?

Build your own service layer using HTTP, gRPC that talks to some backend service that provides access to a data store.使用 HTTP 构建您自己的服务层,gRPC 与一些提供对数据存储的访问的后端服务进行通信。 You can do this with Express, Rails, CloudFunctions, etc.您可以使用 Express、Rails、CloudFunctions 等来做到这一点。

You can either use dart code to do HTTP/gRPC, or use Platform channel to wrap dart code around native iOS and Android code of AWS official SDK.您可以使用 dart 代码进行 HTTP/gRPC,也可以使用Platform 通道将 dart 代码封装在 AWS 官方 SDK 的原生 iOS 和 Android 代码周围。

On another note, I'm highly concerned when you connect directly from mobile (Flutter) to database (AWS RDS).另一方面,当您直接从移动设备 (Flutter) 连接到数据库 (AWS RDS) 时,我非常担心。 Please be aware that anything on mobile app can be reversed engineer, and your database connection credential is not safe.请注意,移动应用程序上的任何内容都可以进行逆向工程,并且您的数据库连接凭据并不安全。 It's recommended to have only backend proxy, or at least severless (such as AWS lambda function) connect directly to database (not mobile or web frontend).建议只使用后端代理,或者至少使用无服务器(例如 AWS lambda 函数)直接连接到数据库(而不是移动或 Web 前端)。 The only exception is with Firebase Realtime Database because it has seamless integration with Firebase Authentication唯一的例外是Firebase 实时数据库,因为它与 Firebase 身份验证无缝集成

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

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