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 Stata 面板数据模型选择
  • ¥20 idea运行测试代码报错问题
  • ¥15 网络监控:网络故障告警通知
  • ¥15 django项目运行报编码错误
  • ¥15 请问这个是什么意思?
  • ¥15 STM32驱动继电器
  • ¥15 Windows server update services
  • ¥15 关于#c语言#的问题:我现在在做一个墨水屏设计,2.9英寸的小屏怎么换4.2英寸大屏
  • ¥15 模糊pid与pid仿真结果几乎一样
  • ¥15 java的GUI的运用