The application discloses a kind of microservice systems based on peer-to-peer network, including microservice module, service governance module and
system comprehensive management module.The
system uses peer-to-peer network to organize the communication and
perception between each node, and uses peer-to-peer network, the organization management, communication, storage of microservice are organized.Service governance node and microservice are joined in peer-to-peer network, using peer-to-peer
network interface, the function of peer-to-peer network is called;Service governance node builds several virtual nodes on peer-to-peer network by consistent hash, and microserver is registered after registration by binding service governance node, when
client accesses microservice, service query request is sent to service governance node through peer-to-peer network, and service governance node selects appropriate microserver for
client according to current situation.The
system of the application is based on peer-to-peer network, and service governance can be distributed in peer-to-peer network by consistent hash, and load balancing is easily realized.