drvpv7995 2014-05-12 05:28 采纳率: 100%
浏览 27
已采纳

REST API,Angularjs前端,后端 - Java与PHP? [关闭]

I am building a website with 100K users daily average. I am using Angularjs as front end framework, using fully RESTFul APIs. For the backend I am having hard time deciding java/spring Vs PHP.

I have team with expertise on both languages so learning curve is not an issue. Please suggest.

  • 写回答

2条回答 默认 最新

  • dongwen6743 2014-05-12 07:01
    关注

    This is always a tricky question, normally the answer would be "stick with the language/ecosystem your team and company are more familiar with". However, your team can work with both, so this is "extra tricky" or simply a "luxury".

    Java with Spring (e.g. Spring Boot for API development) or Java with a JAX-RS framework (e.g: Jersey, Resteasy) for API development (plus Spring for other things, e.g.: database management, etc.) are very popular... actually JVM is very strong for web services (backend APIs) development, so this may be something to consider as a strong point for Java.

    PHP seems to be used (most of the times) for complete web application development (including views), but several people also use for API only too. Facebook uses a lot of PHP, apparently Java too, it seems to work for basically any "server-side" development.

    I personally am more inclined and experienced on JVM and java API development, it is very easy to develop java-based APIs nowadays. A java-based solution gives you a lot of possibilities in terms of frameworks and also languages you can eventually use (other JVM-based languages), etc., and it is very performant! However, I have little experience with PHP, so maybe there are some incredible points on PHP that make it very attractive...

    Performance wise there are some comparisons (Java seems to be more performant, but most people seem to agree PHP is "easier to develop"):

    HTH

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 如何让企业微信机器人实现消息汇总整合
  • ¥50 关于#ui#的问题:做yolov8的ui界面出现的问题
  • ¥15 如何用Python爬取各高校教师公开的教育和工作经历
  • ¥15 TLE9879QXA40 电机驱动
  • ¥20 对于工程问题的非线性数学模型进行线性化
  • ¥15 Mirare PLUS 进行密钥认证?(详解)
  • ¥15 物体双站RCS和其组成阵列后的双站RCS关系验证
  • ¥20 想用ollama做一个自己的AI数据库
  • ¥15 关于qualoth编辑及缝合服装领子的问题解决方案探寻
  • ¥15 请问怎么才能复现这样的图呀