| In recent years,people's life becomes more and more different because of the rapid and convenient Internet.The most significant thing is Internet social networking.People can communicate with friends by text and video without go-off.The Internet social networking becomes a part of people's life step by step.Due to this,people's offline communication is growing scarce.People even be tired of offline communication.They prefer to use Internet even if face-to-face.Aiming at the problem in Internet social networking “too much visual”,“too little offline”,in this paper my research work is using location based service,site-wide cache technology,persistent connection communication,message queue technology and so on.To design and implement a social game system gives users a platform of offline communication.Users can finish tasks together.It makes a lot of fun.This paper introduces a social game system,which contains some main module.Such as user system module,which is responsible for users to register and login,to edit password,to send verification,to authenticate,to create game role and to edit avatar;map system module,which is responsible for users to manage all message includes portal information,equipment information,situation information,energy information and so on;Game system module,which is responsible for users to manage game items,data from game action,data of game role;Game data statistics system module,which is responsible for users to analyse the data from game,to show the data in the form of a table;Chatroom system module,which is responsible for users to speak with each other;Game management system module,which is responsible for user to change the data in the game and admin permission.To implement this social game system,this paper elaborate three key technologies.(1)Site-wide cache technology,it include local database of client,memory cache and database of server.We use their own advantage to accelerate visit speed.(2)Persistent connection communication,when people talk to each other in chat-room,it can send and receive message immediately.(3)Message queue,it based on producer-customer model.Processes can share data queue,it can help to decouple each sub-systems;It can also solve the problem of message cache.Processes in different execution cycle can work for one thing. |