求架构方案:一个日均访问量50万的物流筛单系统的技术架构方案?
系统架构
对于一个日均访问量50万左右的物流筛单系统,要求系统响应时间3秒以内、对系统可靠性、稳定性和扩展性有要求,大家建议采用什么技术架构好呢?回复讨论(解决方案)
nginx,server不止一台。
关键看瓶颈,要是server不行就加机器,要是数据库不行比如使用内存表那就加内存,否则就分库分表,关键看业务需求,找出瓶颈
先测试出系统瓶颈,再谈下一步。
服务器用lnmp,数据库采用按月分表,如果钱不是问题搞个数据库读写分离。
在网上查了些资料,我的初步想法是用LNAMP,静态资源让nginx处理同时提供负载均衡,apache(先用2台)做集群专门处理php,数据库mysql(2台)做集群,数据库缓存用memcached,然后再测试出系统瓶颈,再调整。
服务器用lnmp,数据库采用按月分表,如果钱不是问题搞个数据库读写分离。
3楼说的数据库采用按月分表或读写分离,没太明白,能否具体说说。
关键看峰值有多大。
在网上查了些资料,我的初步想法是用LNAMP,静态资源让nginx处理同时提供负载均衡,apache(先用2台)做集群专门处理php,数据库mysql(2台)做集群,数据库缓存用memcached,然后再测试出系统瓶颈,再调整。
服务器用lnmp,数据库采用按月分表,如果钱不是问题搞个数据库读写分离。
3楼说的数据库采用按月分表或读写分离,没太明白,能否具体说说。
1、物流筛单是否可以理解成物流订单数据?如果是可以把这个数据按有分表。
2、没必要做什么静态服务器,因为你是查数据不是查图片等。
3、你这个系统1台服务器不会出问题,2台服务器更稳定。
4、如果你用2台服务器,我建议数据库做读写分离(也可以说是主从),web程序可以2台服务做个负载均衡
我的观点是日访问是PV,还是UV,就算是UV 2台服务器搞定。这样就够了。数据量太小不用整哪么大。
这个系统UV不大,主要是考虑PV;
物流筛单就是对物流运单的筛选,将来源于电商平台接口和卖家自己录入、导入的物流运单进行处理。
所以主要压力应该在数据库访问这块。
你这个还是用php+nginx+redis比较好吧.用mysql作为备份数据库备机就可以了.
你这个还是用Linux+php+nginx+redis比较好吧.用mysql作为备份数据库备机就可以了.内存大点就可以了

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

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

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



Alipay PHP...

JWT is an open standard based on JSON, used to securely transmit information between parties, mainly for identity authentication and information exchange. 1. JWT consists of three parts: Header, Payload and Signature. 2. The working principle of JWT includes three steps: generating JWT, verifying JWT and parsing Payload. 3. When using JWT for authentication in PHP, JWT can be generated and verified, and user role and permission information can be included in advanced usage. 4. Common errors include signature verification failure, token expiration, and payload oversized. Debugging skills include using debugging tools and logging. 5. Performance optimization and best practices include using appropriate signature algorithms, setting validity periods reasonably,

The application of SOLID principle in PHP development includes: 1. Single responsibility principle (SRP): Each class is responsible for only one function. 2. Open and close principle (OCP): Changes are achieved through extension rather than modification. 3. Lisch's Substitution Principle (LSP): Subclasses can replace base classes without affecting program accuracy. 4. Interface isolation principle (ISP): Use fine-grained interfaces to avoid dependencies and unused methods. 5. Dependency inversion principle (DIP): High and low-level modules rely on abstraction and are implemented through dependency injection.

How to automatically set the permissions of unixsocket after the system restarts. Every time the system restarts, we need to execute the following command to modify the permissions of unixsocket: sudo...

How to debug CLI mode in PHPStorm? When developing with PHPStorm, sometimes we need to debug PHP in command line interface (CLI) mode...

Article discusses late static binding (LSB) in PHP, introduced in PHP 5.3, allowing runtime resolution of static method calls for more flexible inheritance.Main issue: LSB vs. traditional polymorphism; LSB's practical applications and potential perfo

Sending JSON data using PHP's cURL library In PHP development, it is often necessary to interact with external APIs. One of the common ways is to use cURL library to send POST�...

Static binding (static::) implements late static binding (LSB) in PHP, allowing calling classes to be referenced in static contexts rather than defining classes. 1) The parsing process is performed at runtime, 2) Look up the call class in the inheritance relationship, 3) It may bring performance overhead.
