您好,欢迎访问三七文档
当前位置:首页 > 办公文档 > 其它办公文档 > SDCC2015-饿了么-程军-饿了么整体架构
饿了么整体架构—程军@Jeff_arc简介•产品介绍•架构演变⺫⽬目录ele.me(饿了么)•始创于2009年•2015是2014年的10倍的增⻓长速度•中国最⼤大的外卖平台产品介绍⽤用户餐厅⾼高端配送社会化配送订单调度配送产品介绍8000W+10,000+300+产品介绍午餐晚餐时间线•⽇日单:280万•峰值:约300单/秒订单产品介绍10x架构演变架构演变PHPNGINXInternet单机时代PHPNGINXInternet单机时代PHPNGINXInternetHAProxy负载均衡OrderUserOrderUserPHPNGINXInternetHAProxyHAProxyUserOrderingHAProxyHAProxySOA:MarkI(400k~600k)OrderUserOrderUserPHPNGINXInternetHAProxyHAProxyUserOrderingHAProxyHAProxySOA:MarkI(600kvs1M)OrderOrderUserUserPHPNGINXInternetF5HAProxyUserOrderingHAProxyHAProxyGateway:MarkII(600kvs1M)PHPNGINXInternetF5HAProxyUserOrderingHAProxyHAProxySOA:MarkII(600kvs1M)NGINXInternetF5HAProxyUserOrderingHAProxyHAProxyPHPSOA:MarkII(600kvs1M)PHPPHP:MarkII(600kvs1M)•FPM=HHVM•CacheSOA:MarkII(600kvs1M)NGINXInternetF5HAProxyUserOrderingHAProxyHAProxyPHPPHPNGINXInternetF5HAProxyOrderingHAProxyHAProxyUserSOA:MarkII(600kvs1M)Service:MarkII(600kvs1M)RedisRedRedRedPythonPostgreSQLPostGISMysqlMysqlMySQLRedisRabbitmqTwemproxyRedisService:MarkII(600kvs1M)PythonPostgreSMySQLRedRabbitmTwemproRed•降级•数据缓存•按领域拆分数据库•异步消息通知Service:MarkII(1.5Mvs1M)RedRedRedRedPythonPostgreSQLPostGISMysqlMysqlMySQLRedisRabbitmqTwemproxyRedisMysqlMysqlPythonPostgreSMySQLRedRabbitmTwemproRedDALMySQLProxy•连接重⽤用•限流•查询拒绝(耗时sql)•读写分离•分库分表MysqlMysqlPostgreSMySQLRedRabbitmTwemproRedDAL•连接重⽤用•限流•查询拒绝(耗时sql)•读写分离•分库分表PythonPHPNGINXInternetF5HAProxyUserOrderingHAProxyHAProxySOA:MarkII(1.5Mvs1M)PHPNGINXInternetF5HAProxyUserOrderingHAProxyHAProxySOA:MarkII(1.5Mvs1M)PHPNGINXInternetF5HAProxyUserOrderingHAProxyHAProxyOrchestrator:MarkIIIWebServiceGatewayWebServiceGatewayWebServiceOrchestrator•前端⾃自⼰己⽣生成⻚页⾯面•前端异步调⽤用•太多的http请求•实现业务功能需要依赖后端前台后台分离WebServiceGatewayWebServiceGatewayWebServiceOrchestratorOrchestrator:MarkIIICartAPIShoppingAPIBannerAPIGeolocationAPIInternetF5WebServiceGatewayWebServiceGatewayWebServiceOrchestratorOrchestrator:MarkIIIPHPNGINXInternetF5HAProxyUserOrderHAProxyHAProxyWebServiceGatewayWebServiceGatewayWebServiceOrchestratorOrchestrator:MarkIIIBookinBookinBookinBookinPromotiPromotioShoppinShoppingWebServiceGatewayWebServiceGatewayPHPNGINXInternetF5HAProxyShoppingMarketingWebServiceOrchestratorServiceBookingOrderingMSABookinBookinBookinBookinPromotiPromotiShoppinShoppinWebServiceGatewayWebServiceGatewayPHPNGINXInternetF5APIProxyShoppingMarketingWebServiceOrchestratorServiceBookingOrderingMSAWebServiceGatewayWebServiceGatewayPHPNGINXInternetF5APIProxyWebServiceOrchestratorServiceBookinBookinBookinBookinPromotiPromotiShoppinShoppinShoppingMarketingBookingOrderingOrchestrator:MarkIVShoppingMarketingBookingOrderingInternetF5APICallDSLinHTTPAPIRPCCallWebServiceGatewayWebServiceGatewayAPIServiceOrchestratorOrchestrator:MarkIVShoppingMarketingBookingOrderingInternetF5APICallDSLinHTTPAPIRPCCallAPIServiceAPIServiceAPIServiceOrchestratorWebServiceGatewayWebServiceGatewayPHPNGINXInternetF5APIProxyWebServiceOrchestratorServiceWebServiceGatewayWebServiceGatewayAPIServiceOrchestratorBookinBookinBookinBookinPromotiPromotiShoppinShoppinShoppingMarketinBookingOrderingWebServiceGatewayWebServiceGatewayPHPNGINXInternetF5APIProxyWebServiceOrchestratorServiceWebServiceGatewayWebServiceGatewayAPIServiceOrchestratorBookingBookingBookinBookinPromotioPromotioShoppinShoppinShoppingMarketingBookingOrdering当前InternetF5ServiceWebServiceGatewayWebServiceGatewayAPIServiceOrchestratorBookingBookinBookingBookinPromotiPromotioShoppinShoppinShoppingMarketingBookingOrdering规划Q&A结束
本文标题:SDCC2015-饿了么-程军-饿了么整体架构
链接地址:https://www.777doc.com/doc-4922310 .html