The embodiment of the present invention discloses an order processing system and its processing method and processing device. The processing method includes: finding all orders in the first period from the buffer unit of the order processing system; allocating all orders in the first period to at least two threads for processing. In the embodiment of the present invention, an order processing system is provided with a buffer unit, which can cache an order to a buffer unit when multiple orders are received, and then extract an order from the buffer unit when subsequent orders are processed, thus avoiding the problem of missing or missing orders when receiving a large number of orders; different threads are independent, so all orders in the first period are allocated to When there are less than two threads, the thread receiving the order can start processing the order separately, so that all orders in the first period can be processed quickly. Compared with the prior art, the invention effectively improves the order processing efficiency.
【技术实现步骤摘要】
一种订单处理系统及其处理方法和处理装置
本专利技术实施例涉及订单系统,尤其涉及一种订单处理系统及其处理方法和处理装置。
技术介绍
Hybris是一个全渠道的电子商务平台,专注于给所有客户提供一流的客户数据管理功能、基于情境的营销工具以及一致的商务流程。Hybris电子商务平台的接口可接入不同的电商平台,从而可以给很多电商平台提供一套专业的订单流程,具有帮客户在后台快捷下单功能、支付便捷的功能。然而,现有Hybris电子商务平台在接收到大批量订单时,处理时间长,订单易流失,影响了用户体验。
技术实现思路
本专利技术实施例提供一种订单处理系统及其处理方法和处理装置,以解决现有订单系统等待时间长、订单易流失的问题。本专利技术实施例提供了一种订单处理系统的处理方法,包括:从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单;将处于所述第一时段的所有订单分配给至少两个线程进行处理。进一步地,从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单之前,还包括:接收多个订单,根据所述多个订单的生成时间信息依次将所述多个订单缓存至所述缓存单元。进一步地,所述订单处理系统包括n个线程,从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单之前,还包括:接收多个订单,根据所述多个订单的生成时间信息将所述多个订单排列为n*m的订单矩阵缓存至所述缓存单元;n和m均为正整数且n大于或等于2。进一步地,将处于所述第一时段的所有订单分配给至少两个线程进行处理的具体执行过程为:将处于所述第一时段的所有订单划分为i份并分配给i个所述线程进行处理。本专利技术实施例还提供了一种订单处 ...
【技术保护点】
1.一种订单处理系统的处理方法,其特征在于,包括:从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单;将处于所述第一时段的所有订单分配给至少两个线程进行处理。
【技术特征摘要】
1.一种订单处理系统的处理方法,其特征在于,包括:从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单;将处于所述第一时段的所有订单分配给至少两个线程进行处理。2.根据权利要求1所述的处理方法,其特征在于,从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单之前,还包括:接收多个订单,根据所述多个订单的生成时间信息依次将所述多个订单缓存至所述缓存单元。3.根据权利要求1所述的处理方法,其特征在于,所述订单处理系统包括n个线程,从所述订单处理系统的缓存单元中查找出处于第一时段的所有订单之前,还包括:接收多个订单,根据所述多个订单的生成时间信息将所述多个订单排列为n*m的订单矩阵缓存至所述缓存单元;n和m均为正整数且n大于或等于2。4.根据权利要求1所述的处理方法,其特征在于,将处于所述第一时段的所有订单分配给至少两个线程进行处理的具体执行过程为:将处于所述第一时段的所有订单划分为i份并分配给i个所述线程进行处理。5.一...
【专利技术属性】
技术研发人员:熊友军,邓晋,
申请(专利权)人:深圳市优必选科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。