Font Size: a A A

Design And Implementation Of Distributed Storage Scheme For Internet Automatic Pharmacy System

Posted on:2018-12-17Degree:MasterType:Thesis
Country:ChinaCandidate:Y X ChangFull Text:PDF
GTID:2348330542970416Subject:Biomedical engineering
Abstract/Summary:PDF Full Text Request
With the reform of the medical system,the monopoly of the pharmaceutical market has been gradually broken,and the huge pharmaceutical market flows from the hospital to the pharmaceutical retail enterprises.At the same time,the rapid development of Internet technology and constantly penetrated into all walks of life,the traditional pharmaceutical industry and the Internet industry is also penetrating each other,providing a new direction for drug retail.Internet Automatic Pharmacy System is an Internet business application project for the pharmaceutical industry,which combines the advantages of traditional physical pharmacy sales and emerging pharmaceutical business sales,using the Internet and robot intelligence to sell drugs.Online Medical and electrical sales platform provide consumers with the convenience of the purchase and query drug services,offline with a physical pharmacy to provide online drug sales sources to ensure the quality of the sale of drugs.As the Internet automatic pharmacy system unique business model,determines the storage system data storage features:1,the system data storage a variety of complex data structure 2,the system data presented physical distributed storage.3,the amount of data in the system will increase over time.The main work of this paper is to design and implement the data distributed storage scheme for Internet automatic pharmacy system.From the three characteristics of Internet automatic pharmacy system data storage,this paper mainly carried out the following three parts of the work:(1)Choosing MongoDB database for the system of various data storage design and implementation.This paper takes the offline pharmacy system as an example to explain the database table design of structured data in the system.The idea of this paper completed the conceptual structure design and UML class pharmacy system offline using domain modeling,and using the data storage characteristics of MongoDB combined with the UML class to complete the logic structure design,realizes the design of data storage table line pharmacy.At the same time,we use the GridFS mechanism provided by MongoDB database to complete the storage of pictures in the system.(2)Analyze the data types and storage characteristics of physical distributed storage.In order to ensure the completeness and consistency of distributed storage data,a real-time updating database is proposed.According to the actual operation scene of the system,the business process analysis is carried out,and multiple cross-server access interfaces are realized by using REST Web Service technology,which solves the problem of consistency of physical distributed storage data and realizes the unified management of data physical distributed storage.(3)Using MongoDB database fragmentation technology and replica set strategy to build a highly available distributed cluster,and solve the storage problem of massive data in the system.According to the database access requirements of the Internet automatic pharmacy system,the rational design of the keys of different database tables is carried out,and the storage pressure of massive data is allocated to multiple hardware servers.Then,migrating from stand-alone database to MongoDB fragmentation cluster is implemented in multiple servers.Finally,functional tests and performance tests of distributed cluster are carried out to verify and evaluate cluster function.
Keywords/Search Tags:distributed storage, MongoDB, REST Web Service, Internet Automatic Pharmacy System
PDF Full Text Request
Related items