Font Size: a A A

Design And Implementation Of Online News Platform Based On B/S

Posted on:2018-12-11Degree:MasterType:Thesis
Country:ChinaCandidate:Y D WangFull Text:PDF
GTID:2348330521951175Subject:Engineering
Abstract/Summary:PDF Full Text Request
More and more news applications have been generated in recent years.As for the reasons,on the one hand,there is a need for more applications which have special content as people's reading needs become stronger and stronger;on the other hand,many companies want to launch their own news applications,so that the application's articles can be applied to the company's other products,thereby increasing the attractiveness of the products to the users.At present news applications not only need to provide users with reading function,but also need to provide more user actions and interactive features.After adding many features,there have been some problems to be solved.For example,there is a need to filter out the sensitive words that appears in the article's comments.In some scenarios,the server of the news application needs to push the reminder message to the online user in real time.Many news applications lack the ability of personalized recommendation.They don't recommend relevant articles according to the user's interests,which can hardly meet the needs of users.The online news platform of this paper provides a wealth of functions and gives solutions to the above-mentioned problems.The platform adopts the B/S architecture.Its service is based on Node.js technology,and its data storage is based on Mongo DB and Redis.In this paper,after analyzing the business and requirements of the platform,the platform is divided into three layers,namely,the data storage layer,the service support layer based on the multiprocess working model and the functional application layer.Among them,the data storage layer is responsible for the work that storing and caching the platform's data.In order to guarantee the stability and performance of the platform,a multi-process working model of Node.js is designed and implemented in the service support layer to support the service of the whole platform.Aiming at the model,this paper designs three process roles according to the real business scene,and designs the communication scheme between the multi-process and the request equilibrium allocation strategy,and provides the corresponding solutions for the various error exit of the process.According to the business requirements of the platform,a number of functional modules are designed and implemented in the functional application layer,namely,the account module,the authority module,the operation management module,the user activity module,the message push module and the personalized recommendation module.These functionalmodules provide the corresponding functionality to work together to complete the needs of the entire platform.In the process of designing and implementing them,a number of important and difficult issues are involved.In the user activity module,this paper designs and implements an indecent word filtering algorithm to carry out real-time filtering detection on the platform.In the message push module,a real-time message push scheme based on socket.io has been designed,which can push messages to all pages of a user in real time.The scheme also implemented push messages in the case of cluster and multi-process services by means of Redis' s publish/subscribe capabilities.In the personalized recommendation module,the algorithm of personalized recommendation for the article is designed.The user interest model is established by data modeling and analysis of the user's historical behavior records,so as to recommend the articles according to calculations.The platform has been used in practice after a complete functional test and performance test.The platform is stable in all aspects and provide users with high-quality services in news reading.This paper has completed the expected work.
Keywords/Search Tags:Multi process working model, News application, personalized recommendation of article, real-time message push
PDF Full Text Request
Related items