Font Size: a A A

Design And Implementation Of Electronic Mall Based On Mini Program And Microservice

Posted on:2022-03-18Degree:MasterType:Thesis
Country:ChinaCandidate:Y L HuFull Text:PDF
GTID:2518306527455394Subject:Master of Engineering
Abstract/Summary:PDF Full Text Request
With the rapid development of the mobile Internet,mobile online shopping has become a "new normal".At the same time,traditional computer shopping websites have gradually faded out of the stage of history.The times are always moving forward,and mini programs with the concept of serving direct users have triggered a new upsurge,bringing a brand-new business model to the Internet industry.Traditional software architecture has exposed many drawbacks in this change,which has accelerated the evolution of software architecture to microservices.Based on the summary and analysis of the status quo of traditional software architecture,this thesis organically combines microservices and mini programs to realize Webuy,an electronic mall based on mini programs and microservices.Relying on the social capabilities of WeChat,WeChat has unique advantages in the acquisition of public domain traffic and private domain traffic.The design of Webuy back-end services has the following characteristics:(1)Focus on function division,focus on horizontal expansion and focus on service and data priority division.(2)Front-end and back-end are separated.The back-end focuses on interface development,which is easier to maintain.The front-end multi-channel inheritance scenario is easier to implement.(3)Follow the RESTful design style,describe operations on resources based on HTTP verbs,and use JSON to transmit data occupies fewer resources.The main work of the electronic mall realized in this thesis are:1.Design and implement an independent payment module,which encapsulates the payment business and supports multi-channel payment scenarios.At the security level,the RSA algorithm is used to sign the data to prevent the data from being tampered with effectively.2.Based on JWT(JSON Web Token)and WeChat openid to realize non-perceptual login and authorization in the applet,the login and authorization process is invisible to users.3.Realize a distributed id generation module based on the database number segment mode,generating a globally unique trend increasing id.In terms of stability,it adopts a multi-data source configuration with a local cache,low dependence on the network,and is not restricted by database performance bottlenecks.4.Use graphs to improve the selection efficiency of SKU(Stock Keeping Unit)in the Webuy and reduce time complexity.5.Design and implement a complete Webuy system that can satisfy users with different roles.Test Webuy in terms of function and performance to prove that the realization of Webuy has reached expectations.
Keywords/Search Tags:Microservice, Mini program, Electronic mall, WeChat, Spring Cloud
PDF Full Text Request
Related items