TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What should I build an iOS API in?

6 点作者 evilswan超过 13 年前
The system will be a CRUD back end for an iOS app, later offering a web app, then otehr clients, etc. I'm outsourcing it, so the choice of language/appserver will be up to the lucky (!) programmer.<p>Will be RESTful with JSON data exchange. Linux on EC2.<p>Other than that - what would you say would be the best route for:<p>- Low system overhead - Fast performance - Low resource usage - Scalability to multiple appservers (eventually)<p>Ruby on Rails? Pyton / Django? PHP on a framework?<p>Or doesn't it matter?

5 条评论

mikegreenberg超过 13 年前
I wish I could provide a strong opinion on a solution good for I/O. I'd need to do research and it's probably what you've already covered, from the sounds of the conversation already here. If I were faced with the decision knowing what I know today, I'd use some queuing system RabbitMQ or other AMQP protocol with a pool of DB servers sucking up requests and processing them. You can maintain a synchronous response with the requesting server via some frontend code (Python w/ Django or Node).<p>With this setup, you can easily throw more DB instances in the pool to grow with your needs. The frontend should be able to handle as many requests as needed (especially Node which has VERY lightweight threads, I hear). You'll just need to reduce the turnaround time via the queue.
评论 #3114464 未加载
ravaa超过 13 年前
Doesn't matter what you use for front end. Ruby used to be a POS VM in terms of performance, but who knows now a'days, but just about anything can return json, so just grab what you can.<p>Your real pain point is going to be your back end. If immediate consistency isn't important, run a job queue with works in the back end hitting some kind of fast access nosql and have a worker whose job it is to write to a mysql or postgress store. raid the ebs volumes and keep a monolithic volume sister box to take snapshots off. you can have the entire environment scripted and repeatable.
评论 #3129944 未加载
karterk超过 13 年前
There is no right answer here. It really depends on what kind of purpose your backend serves. Is it processor bound or I/O bound? How frequently is your app going to hit the backend? How fast do you expect to grow?
评论 #3111080 未加载
bdfh42超过 13 年前
It probably does not matter a lot. Find a programmer that has written a server back end to an iOS app before and use what she wants to use.
wedtm超过 13 年前
Node.js