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 matlab中使用gurobi时报错
  • ¥15 WPF 大屏看板表格背景图片设置
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂