Home  >  Article  >  Backend Development  >  电商后台api使用golang还是python写好?

电商后台api使用golang还是python写好?

WBOY
WBOYOriginal
2016-06-17 08:31:252720browse

我在新建个电商网站,想采用php+Python或php+golang。Python或golang用于写一些api给php调用。一般地说,哪种搭配更靠谱?golang在并发处理上是不是有优势?我不太懂,求general的指导。

回复内容:

一般电商后台的瓶颈都在数据库那边,前面是 Python 还是 Go 基本不会成为瓶颈,你的团队对哪个技术更熟就用哪个好了。

updated: 加一句:只要不用 php 直连数据库就好了。 大多数项目的并发问题在远远谈不到语言层面时就已经死掉了,抛开业务谈并发没有任何意义。你能找到什么样的人就用什么样的语言。 为什么你的组合里面一定要有PHP ?纯PHP 或者 纯java 纯GO 纯Python 不行么? 按照 RESTful API 的要求来写,用python或golang都不是问题。
喜欢或熟悉python就用python
喜欢或熟悉golang就用golang 哪个熟悉用哪个,别把项目折腾死了。都不熟悉的话,就用Go吧,并发会好点。 感觉从长久来看,还是选择golang可靠点,
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn