search
HomeBackend DevelopmentPHP Tutorial开发电商为什么都喜欢用java?

互联网2年经验,一直PHP做WEB服务器,没做过电商

想了解一下,为什么各个电商都喜欢用java 京东,阿里,美团什么的都是
难点在哪儿?java有什么比脚本 PHP python 更有优势的地方
用PHP或者PY难道搞不定么

回复内容:

因为新手和老手用java写的代码都差不多,降低了沟通成本。 谁说的?

目前国内电商最常用的方式是java写服务端php前台调接口。 阿里为啥不清楚,但是别家都用就是因为阿里用。
就这么简单,这条路被阿里趟过了,证明可行。
不会遇到发展到一定程度要换技术的尴尬情况。 因为写java的程序猿遍地都是,便宜。



说点正常的。电商平台是由若干个子系统平台组成的。一个完整的的电商平台至少包括:用户管理,客户营销,客户服务,一整套的产品管理,跨平台/渠道管理,支付系统,物流管理,仓储管理……统计报表。要是开放平台,还要有一大堆的商户管理功能。而且电商通常面临高并发交易量的问题,交易时间比较集中,比如双十一。所以这整个就是一个企业级的系统架构要求。企业级,难道不正是JAVA的专长吗? 不限于语言的,PHP部署灵活,性能上基本没啥问题,不够好的地方我们也有用C的,也没遇到什么不能做的。没用过JAVA,但是听说过JAVA的Web开发有很多弊端,比如上线要折腾好久之类的。老大说的:用JAVA的比较高大上,因为大家都在用...... 不要喷我~~ JAVA在企业级方面的应用和解决方案相对成熟吧。
PHP很大程度上还是用于WEB网站多一些,做业务系统,有些时候会显得有些力不从心。PHP程序员虽然多,但大多是做WEB浅层开发,能够用PHP做企业级(或者商用型)业务系统的非常少。 京东 .NET
淘宝 前台 PHP
而且,基本小的商城都是 完全 PHP 写的好吧
大网站的话,基本 JAVA + PHP 电商系统涉及很多子系统,java作为企业级管理系统,对复制的系统业务更擅长,php多是web浅层开发。整体来说java在系统架构上要比php优越很多;在数据接口上通过JDBC来访问数据库,通过不同的数据库厂商提供的数据库驱动方便地访问数据库,访问数据库的接口比较统一;还有就是安全性上,做电商本身就是存在资金流,java优越的安全性就提现出来了。 Java是一个工业化语言,在建立大型应用上比较有优势。 我是一个做java开发的程序员,php这些也都涉及到过,我目前是在负责开发公司的电商项目。应该能扯扯。 首先你要明白php主要是用来写网页的,涉及的是web开发的浅层,而像大型的网站的业务系统很多很复杂,一个网站是有好多子系统组建成的,而java特长就是企业级管理系统,能解决繁杂的系统业务,而php.net面对这些业务 力不从心。
最重要的一点,java开发技术成熟,降低了公式的开发成本,会java的程序员比较多。。。
Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
How to make PHP applications fasterHow to make PHP applications fasterMay 12, 2025 am 12:12 AM

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

PHP Performance Optimization Checklist: Improve Speed NowPHP Performance Optimization Checklist: Improve Speed NowMay 12, 2025 am 12:07 AM

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

PHP Dependency Injection: Improve Code TestabilityPHP Dependency Injection: Improve Code TestabilityMay 12, 2025 am 12:03 AM

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

PHP Performance Optimization: Database Query OptimizationPHP Performance Optimization: Database Query OptimizationMay 12, 2025 am 12:02 AM

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

Simple Guide: Sending Email with PHP ScriptSimple Guide: Sending Email with PHP ScriptMay 12, 2025 am 12:02 AM

PHPisusedforsendingemailsduetoitsbuilt-inmail()functionandsupportivelibrarieslikePHPMailerandSwiftMailer.1)Usethemail()functionforbasicemails,butithaslimitations.2)EmployPHPMailerforadvancedfeatureslikeHTMLemailsandattachments.3)Improvedeliverability

PHP Performance: Identifying and Fixing BottlenecksPHP Performance: Identifying and Fixing BottlenecksMay 11, 2025 am 12:13 AM

PHP performance bottlenecks can be solved through the following steps: 1) Use Xdebug or Blackfire for performance analysis to find out the problem; 2) Optimize database queries and use caches, such as APCu; 3) Use efficient functions such as array_filter to optimize array operations; 4) Configure OPcache for bytecode cache; 5) Optimize the front-end, such as reducing HTTP requests and optimizing pictures; 6) Continuously monitor and optimize performance. Through these methods, the performance of PHP applications can be significantly improved.

Dependency Injection for PHP: a quick summaryDependency Injection for PHP: a quick summaryMay 11, 2025 am 12:09 AM

DependencyInjection(DI)inPHPisadesignpatternthatmanagesandreducesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itallowspassingdependencieslikedatabaseconnectionstoclassesasparameters,facilitatingeasiertestingandscalability.

Increase PHP Performance: Caching Strategies & TechniquesIncrease PHP Performance: Caching Strategies & TechniquesMay 11, 2025 am 12:08 AM

CachingimprovesPHPperformancebystoringresultsofcomputationsorqueriesforquickretrieval,reducingserverloadandenhancingresponsetimes.Effectivestrategiesinclude:1)Opcodecaching,whichstorescompiledPHPscriptsinmemorytoskipcompilation;2)DatacachingusingMemc

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools