使用c开发web后端接口
目录
使用c++开发web后端接口
- 能否用c++开发web后端接口?
- 答案是:能。
Python运算性能比C/C++慢200倍以上。
Python Web服务器性能可以达到C/C++的1/10。 参考:
https://www.zhihu.com/question/26782196/answer/968086477?utm_source=wechat_session
- c++可以开发cgi程序,作用与web后端接口应该是一样的。 参考:
https://baike.c114.com.cn/view.asp?id=884-817A6D95
c++开发webapi,http协议接口:
使用如下办法:
cinatra
ormpp
参考:
https://www.csdn.net/tags/MtzaIg2sMjAtYmxvZwO0O0OO0O0O.html
https://github.com/qicosmos/cinatra
https://blog.csdn.net/weixin_39623411/article/details/111929873
- 也可以用go语言开发web后端接口,性能较高,与c++接近。