购物车

nowservice

添加商品到购物车
POST: /api/v5/cart/add_items

s2s/v5/cart/add_items

QPS: 92

nowcart-service

add_items

1

_add_update_items

1

外部依赖
nowmerchant./s2s/v5/stores

1

校验店铺
is_validate_deli_res

1

校验店铺
is_validate_deli_res

1

校验店铺
ShoppingCartItemHandler.load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

查询配料信息
nowmenu./s2s/v5/buyer/dish/get_option_group_mappings

校验店铺
ShoppingCartItemHandler.set_items()

获取优惠列表
promotion.get_discount_item_list

拆分优惠信息
update_discount_price_and_split_items

查询赠品信息
promotion.check_gifts

合并赠品
build_shopping_cart_free_items

更新DB和缓存
clear_items_by_store_id
create_cart_items_from_db

获取最新购物车条目信息
ShoppingCartViewHandler._load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

检查配送时间
cart_order_manager.is_acceptable_asap_delivery_time

移除无效菜品
_remove_invalid_cart_items

构造购物车信息
ShoppingCartViewHandler.get_shopping_cart_basic_info()

更新
POST: /api/v5/cart/update_items

s2s/v5/cart/update_items

QPS: 22

nowcart-service

add_items

1

_add_update_items

1

外部依赖
nowmerchant./s2s/v5/stores

1

校验店铺
is_validate_deli_res

1

校验店铺
is_validate_deli_res

1

校验店铺
ShoppingCartItemHandler.load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

查询配料信息
nowmenu./s2s/v5/buyer/dish/get_option_group_mappings

校验店铺
ShoppingCartItemHandler.set_items()

获取优惠列表
promotion.get_discount_item_list

拆分优惠信息
update_discount_price_and_split_items

查询赠品信息
promotion.check_gifts

合并赠品
build_shopping_cart_free_items

更新DB和缓存
clear_items_by_store_id
create_cart_items_from_db

获取最新购物车条目信息
ShoppingCartViewHandler._load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

检查配送时间
cart_order_manager.is_acceptable_asap_delivery_time

移除无效菜品
_remove_invalid_cart_items

构造购物车信息
ShoppingCartViewHandler.get_shopping_cart_basic_info()

查看店铺购物车商品列表
GET: /api/v5/cart/get_items

s2s/v5/cart/get_items

QPS: 100

nowcart-service

get_items

1

外部依赖
nowmerchant./s2s/v5/stores

1

构造购物车信息
cart_manager.build_cart_info()

获取最新购物车条目信息
ShoppingCartViewHandler._load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

检查配送时间
cart_order_manager.is_acceptable_asap_delivery_time

移除无效菜品
_remove_invalid_cart_items

校验店铺
ShoppingCartItemHandler.set_items()

外部依赖
获取优惠列表
promotion.get_discount_item_list

拆分优惠信息
update_discount_price_and_split_items

查询赠品信息
promotion.check_gifts

合并赠品
build_shopping_cart_free_items

更新DB和缓存
clear_items_by_store_id
create_cart_items_from_db

构造购物车信息
ShoppingCartViewHandler.get_shopping_cart_basic_info()

刷新购物车商品信息
POST: /api/v5/cart/refresh_items

s2s/v5/cart/add_items

QPS: 92

nowcart-service

add_items

1

_add_update_items

1

外部依赖
nowmerchant./s2s/v5/stores

1

校验店铺
is_validate_deli_res

1

校验店铺
is_validate_deli_res

1

校验店铺
ShoppingCartItemHandler.load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

查询配料信息
nowmenu./s2s/v5/buyer/dish/get_option_group_mappings

校验店铺
ShoppingCartItemHandler.set_items()

获取优惠列表
promotion.get_discount_item_list

拆分优惠信息
update_discount_price_and_split_items

查询赠品信息
promotion.check_gifts

合并赠品
build_shopping_cart_free_items

更新DB和缓存
clear_items_by_store_id
create_cart_items_from_db

获取最新购物车条目信息
ShoppingCartViewHandler._load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

检查配送时间
cart_order_manager.is_acceptable_asap_delivery_time

移除无效菜品
_remove_invalid_cart_items

构造购物车信息
ShoppingCartViewHandler.get_shopping_cart_basic_info()

删除购物车中商品
POST: /api/v5/cart/remove_items

s2s/v5/cart/remove_items

QPS: 12

nowcart-service

remove_items

1

外部依赖
nowmerchant./s2s/v5/stores

1

校验店铺
ShoppingCartItemHandler.load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

查询配料信息
nowmenu./s2s/v5/buyer/dish/get_option_group_mappings

校验店铺
ShoppingCartItemHandler.set_items()

获取优惠列表
promotion.get_discount_item_list

拆分优惠信息
update_discount_price_and_split_items

查询赠品信息
promotion.check_gifts

合并赠品
build_shopping_cart_free_items

更新DB和缓存
clear_items_by_store_id
create_cart_items_from_db

获取最新购物车条目信息
ShoppingCartViewHandler._load_data()

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

检查配送时间
cart_order_manager.is_acceptable_asap_delivery_time

移除无效菜品
_remove_invalid_cart_items

构造购物车信息
ShoppingCartViewHandler.get_shopping_cart_basic_info()

清空购物车
POST: /api/v5/cart/empty_items

s2s/v5/cart/empty_items

QPS: 17

nowcart-service

empty_items

更新DB
cart_db_manager.clear_items_by_store_id

1

查询聚合购物车菜品
POST: /api/v5/cart/get_collection_items

s2s/v5/cart/get_collection_items

QPS: 2

nowcart-service

get_collection_items

cart_manager.get_collection_items

查询DB
cart_db_manager.get_all_cart_items

1

外部依赖
nowmerchant./s2s/v5/stores

1

查询菜品信息
nowmenu./s2s/v5/buyer/dish/get_infos

查询主店铺id
nowmerchant./s2s/v5/brand/get_head_restaurant_ids

构造delivery_info
delivery_info_manager.build_delivery_info

清空聚合购物车
POST: /api/v5/cart/empty_collection_items

s2s/v5/cart/empty_collection_items

QPS: 1

nowcart-service

empty_collection_items

更新DB
cart_db_manager.clear_items_by_store_id

1

nowcart-service

s2s/v5/cart/get_shopping_items

QPS: 126

get_shopping_items

查询DB
cart_db_manager.get_all_cart_items

1

s2s/v5/cart/update_shoppings_items

QPS: 2

update_shoppings_items

更新DB
cart_db_manager.update_shoppings_items

1

分支执行次数,在节点后标示
缓存命中率按照0.9计算

重复调用