热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

iosnativeapp与API或直接数据库连接交谈?-iosnativeapptalkingtoanAPIordirectdatabaseconnections?

Folks,Designinganiosapplication,andwouldliketoconfirmmystrategy.Thereisadatabase(dyn

Folks, Designing an ios application, and would like to confirm my strategy. There is a database (dynamo/mongo/etc) i am building up, which the app needs to make use of. Is it smart to front the database with an API, and have the ios app authenticate against the api.
This way the app makes calls to the api instead of directly to the database?

伙计们,设计一个ios应用程序,并想确认我的策略。我正在构建一个数据库(dynamo / mongo / etc),应用程序需要使用它。使用API​​支持数据库是否明智,并让ios应用程序对api进行身份验证。这样应用程序调用api而不是直接调用数据库?

Would you suggest node.js be a good place to start crafting the web api with?

你会建议node.js是一个开始制作web api的好地方吗?

Thanks!

谢谢!

1 个解决方案

#1


3  

Yes, access the data via an API. Whether fancy authentication is needed, depends on what is stored in your database, and what your application is designed to do. Here is one resource (among millions) on API design: http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api

是的,通过API访问数据。是否需要花哨认证取决于数据库中存储的内容以及应用程序的设计目标。以下是API设计中的一种资源(数百万):http://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api

Also, here is a popular networking library for iOS: https://github.com/AFNetworking/AFNetworking

此外,这是一个流行的iOS网络库:https://github.com/AFNetworking/AFNetworking

As for what technology to use, that too open ended and you will get 10 answers for every technology available. This should help though: https://softwareengineering.stackexchange.com/q/154519/44948

至于使用什么技术,太开放的结果,你会得到每个可用技术的10个答案。这应该有所帮助:https://softwareengineering.stackexchange.com/q/154519/44948


推荐阅读
author-avatar
-断桥再见-_974_328
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有