高流量、高安全的Web API,什么语言?

发布于 2024-08-11 17:07:03 字数 1431 浏览 10 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

執念 2024-08-18 17:07:03

我会选择我最了解的一个。就我个人而言,它很可能是某种 Java。

I would choose the one I know the best. In my individual case it will be most likely Java of some sort.

虐人心 2024-08-18 17:07:03

构建高流量网站更多的是设计和架构而不是语言。考虑您团队的经验、您可能需要的第三方库的可用性,并做出明智的选择。

如果您喜欢尝试并且不介意使用那些没有时间像关系数据库那样积累大量经验的技术,您可以使用 NoSQL 数据库,但除此之外,我建议您选择传统的数据库现在就这样。

Building high-traffic sites is more about design and architecture than the language. Consider the experience of your team, the availability of third-party libraries you might need, and choose wisely.

You can use a NoSQL database if you like to experiment and don't mind working with technologies that just didn't have the time to accumulate huge amount of experience as relational databases had, but otherwise I'd recommend you to go for the traditional way now.

写给空气的情书 2024-08-18 17:07:03

这是一个非常主观的问题,完全取决于您想要做什么的具体情况。就极其安全的网站而言,我认为大多数语言都是平等的,重要的因素是您实施的安全类型。你会清理用户输入吗?你能防止 SQL 注入吗?等等。

我自己更喜欢走Python路线,代码非常干净,库非常丰富,而且它可以说是最好的Web框架之一,Django。你问我们会使用什么语言从头开始构建,但在我看来,只有愚蠢的开发人员不会让他/她的网站从一个可靠的框架开始,无论是 Django、Rails、Cake 等。

This is an extremely subjective question that is totally dependent on the specifics of what you want to do. In terms of an extremely secure site, I think most languages are equal, the important factor is what types of security you implement. Do you sanitize user input? Do you protect from SQL injection? Etc.

I myself prefer to go the Python route, the code is very clean, the libraries are very rich, and it arguably has one of the best web frameworks available, Django. You ask what language we would use to build from scratch, but in my opinion only a foolish developer wouldn't get his/her website started with a solid framework, whether it be Django, Rails, Cake, etc.

黑寡妇 2024-08-18 17:07:03

在知道需要完成什么工作之前,不要选择工具。

开源与非开源应该是您最不关心的问题。这与您的目标无关(除非“开源”实际上意味着“不必付费”:-))。

关系型与 noSQL 是一个相关的问题,但如果不知道将存储和处理什么类型的数据,这是一个有争议的问题。

至于语言 - 确保您选择您和您的团队最了解的语言。构建可扩展的安全平台不是学习新工具的时候。 :-)

Don't choose your tools before you know what job needs to be done.

Open-source vs. non-open-source should be the least of your concerns. It's irrelevant for your goal (unless by "open source" you actually mean "don't have to pay for" :-)).

Relational vs. noSQL is relevant question, but without knowing what type of data will be stored and processed it's a moot point.

As for language - make sure you pick the one you and your team know the best. Building scalable, secure platform is not the time to learn new tools. :-)

情归归情 2024-08-18 17:07:03

尽管某些语言试图让您更轻松地编写安全代码,但我还是想到了 .NET。我同意 DroidIn 的观点,即重要的不是语言,而是设计和编码器。对于每种语言,我可以给您一个成功使用它的大型网站的示例。

  • PHP (Facebook)
  • .NET (MSFT 网站)
  • C++ (可能是 Google 的一些)
  • Java (我认为 Ebay C++ 也是如此)
  • Ruby (Twitter)
    等等...

对于数据库,我想说,这与安全性无关,而是与您要使用的数据库的大小以及您想要执行的操作有关。如果您需要 25 个具有 TB 存储空间的数据库服务器,那么请选择 MySQL 等免费解决方案。但如果没有,您就无法在任何常规数据库应用程序的运行中击败 Microsoft SQL Server 的功能。

Although some languages try to make it easier for you to write secure code, .NET comes to mind. I agree with DroidIn that it's not as much about the language as it is about the design and the coder(s). For each language I could give you an example of some huge site using it successfully.

  • PHP (Facebook)
  • .NET (MSFT sites)
  • C++ (some of Google probably)
  • Java (Ebay C++ as well I think)
  • Ruby (Twitter)
    etc...

For the database I would say it's not as much about security as it is how big you are going to go and what you are trying to do. If you need 25 database servers with terabytes of storage then go for a free solution like MySQL. But if not, you can't beat the features of Microsoft SQL Server for any run of the mill database application.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文