节点文献
基于SOA的商户服务系统的设计与实现
The Design and Implementation of Merchant Service System based on SOA
【作者】 王洁;
【作者基本信息】 南京大学 , 工程硕士(软件工程方向)(专业学位), 2016, 硕士
【摘要】 在O2O领域,商户是互联网公司竞争的重要指标,谁拥有更多的商户,谁就能占据更多的市场份额,因此公司也越来越重视商家端的研发。当公司面对日益增多的商户数以及商家业务需求时,如何构建商家服务后台系统来满足高流量的商户访问、高安全的商户操作和复杂的商户业务需求,成为各大O2O公司关注的焦点。大部分成熟的O2O公司,正逐渐面临着百万级别的商户数据以及越来越多的垂直业务领域(如团购、预定、丽人、电影、广告、结婚等)。管理好用户的数据,构建好复杂业务的商户后台系统,更好满足商户的系统体验是各大O2O企业的核心使命。本文以新美大公司的商户后台系统为例,系统在技术上采用J2EE体系结构,使用MVC模式的设计思想,结合了 Struts,Spring,IBATIS等先进技术方法,通过SSI框架可以减少开发工作量,配置文件的使用增加了系统的可扩展性和灵活性。其次系统采用SOA架构并使用基于SOA的Pigeon、Lion、Cat等框架进行设计开发。通过SOA架构,各服务组件之间耦合性较低,有利于处理复杂的业务需求。最后,系统的很多模块使用Groovy这一动态语言开发,通过Groovy动态语言的使用明显减少了开发的工作量,提高开发的效率。通过相关技术的使用,如基于SOA的Pigeon框架将服务进行分布式的部署,各服务组件之间耦合性较低,对外仅仅暴露接口名,web层无需关心其底层实现,因而有利于实现复杂的业务逻辑。其次缓存、异步调用等技术保证了快速的响应时间以及相关安全技术的使用,都极大提高了商户的使用体验。最后,动态语言的使用也提高了开发者开发的效率,如在商家后台的销售数据模块,通过Groovy语言对代码的重构,使LOC从550行左右降低到200行左右,效率惊人,保证了系统的快速迭代。
【Abstract】 In the field of O2O,merchant is an important indicator.The one who has more merchants will occupy more market shares.Therefore,companies will pay more attention to the business side.Now companies are faced with an increasing number of merchants and business needs.Thus,it is significant to build the merchant service system which will meet high concurrent access,high security and complex business needs.Most mature companies are faced with one million level of merchants and more and more vertical business areas such as group buying,booking,beauty,film,advertising,marriage etc.As a result,their core task is that the company should effectively manage merchant data,build robust business system and satisfy good merchants experience.In DP case in this paper.In the first place,the system uses J2EE,MVC pattern and some advanced technologies such as Spring,Struts and IBATIS,which reduces development efforts and enhance system expansibility and flexibility.In the second place,the system uses SOA framework such as Pigeon,Lion and Cat.Therefore,it helps to deal with the complex business needs because of the loose coupling among service components.Last but not least,using Groovy in some modules significantly improves the efficiency of development.By using above technologies,for one thing,the SOA framework such as Pigeon consists of distributed service deployments which have loose coupling and only exposes interface name to web layer,which helps to solve the problem of complex business logic.For another thing,it is helpful to satisfy good merchants experience by means of asynchronous calls and caching technology which ensure fast response.In the end,the result of refactoring codes in Groovy language is obvious.For example,the LOC on merchant sale module decreases from 550 to 200.Therefore,Groovy language ensures the rapid iteration.
- 【网络出版投稿人】 南京大学 【网络出版年期】2022年 06期
- 【分类号】TP311.52
- 【下载频次】13