开发物联网,Java和Golang哪个好?

开发物联网,Java和Golang哪个好?,第1张

开发物联网,Java和Golang哪个好? 指标JavaGolang备注人好招吗容易较少Java太多了,转Golang的人比较多,但还是少学习门槛高低Java的体系比较庞大,能把人学趴下内存占用高很低改Golang之后内存占用少了80%(见参考资料1)启动时间很慢很快微服务启动时间从30秒变成0.5秒边缘设备支持折腾多折腾少物联网边缘设备需求越来越强。性能高更高最新的测试是高一丢丢。并发高高Golang天生高并发省钱?需要更多的硬件省钱Golang硬件利用率高,更节省设备费易部署?慢快Golang编译一个可执行文件就可以跑起来框架体系发达一般Java人多势众,框架多发展趋势逐步衰落逐步上升TIOBE编程语言排行榜。易维护代码难度大代码易读面向过程性的代码比面向对象抽象代码易读。

以上对比,错了请直接喷,我好去改。

参考资料

1 、Ravi Kumar:What do open source IoT platforms/projects like Mainflux and EdgeXFoundry mean?
What is Go language and what are its benefits?
Go is a general purpose language developed by Google. In 2009, it had its first public introduction. Initially the EdgeX project was developed in Java but the footprint was pretty big and took too long to start the system. The codebase was then migrated from Java to Go and improvements in footprint were huge, close to 80%. While Java miscroservice startup takes 30 seconds, Go microservice takes 0.5 seconds. For scaling the system, Go language is efficient.
2、为什么在树莓派开发当中都用Python和C/C++,而不是用Java,是因为树莓派带不动Java吗?
https://www.zhihu.com/question/65792220/answer/289120081

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5719738.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-18
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存