简体   繁体   English

什么技术堆栈/平台用于项目?

[英]What tech stack/platform to use for a project?

This is a bit of a weird meta-programming question, but I've realized that my new project doesn't need a full MVC framework, and being a rails guy, I'm not sure what to use now. 这是一个奇怪的元编程问题,但我已经意识到我的新项目不需要一个完整的MVC框架,并且是一个铁人,我不知道现在要用什么。

To give you a gist of the necessary functionality; 为您提供必要功能的要点; this website will display static pages, but users will be able to log in and 'edit their current plans'. 该网站将显示静态页面,但用户将能够登录并“编辑他们当前的计划”。 All purchasing and credit card editing is being handled by a recurring payment subscriber, I just need a page to edit their current plan. 所有采购和信用卡编辑都由定期付款用户处理,我只需要一个页面来编辑他们当前的计划。 All of that will be done through (dynamic) XML API calls, so no database is necessary. 所有这些都将通过(动态)XML API调用完成,因此不需要数据库。

Should I stick with my typical rails/nginx stack, or is there something I could use that would lighten the load, since I don't need the Rails heft. 我应该坚持我的典型rails / nginx堆栈,还是我可以使用的东西可以减轻负载,因为我不需要Rails重量。 I'm familiar with python and PHP but would prefer not to go that route. 我熟悉python和PHP,但不想走那条路。 Is Sinatra a good choice here? Sinatra在这里是个不错的选择吗?

tl;dr: What's a good way to quickly serve mostly static pages, preferably in Ruby, with some pages requiring dynamic XML rendering? tl; dr:什么是快速服务大多数静态页面的好方法,最好是在Ruby中,有些页面需要动态XML呈现?

如果你想坚持使用Ruby,那么Sinatra会很好,就像Rails Metal一样。

If you're feeling a bit adventurous and want to get some useful experience with the technology that rails uses you could try building a Rack application. 如果您有点冒险并且想要获得一些有关rails使用技术的有用经验,您可以尝试构建Rack应用程序。 It's a pretty simple API to be able to respond to generic HTTP queries, and from there you can quickly build static file handling and XML processing. 这是一个非常简单的API,能够响应通用的HTTP查询,从那里你可以快速构建静态文件处理和XML处理。 It's also considerably faster to start up and serve pages than rails. 启动和提供页面比使用rails更快。

http://github.com/cloudhead/toto is an example of a decent Rack based application. http://github.com/cloudhead/toto是一个体面的基于Rack的应用程序的例子。

If you know Rails, then why not just stick with it? 如果你知道Rails,那么为什么不坚持下去呢? That way you can use all authentication features, etc. that you're used to without having to learn another platform and incur the implementation risks that that includes. 这样您就可以使用您习惯的所有身份验证功能等,而无需学习其他平台并产生包含的实施风险。 If the application ever grows beyond what's expected you're already on a solid base. 如果应用程序的增长超出了预期,那么您已经拥有了坚实的基础。

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

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