Microservices communicate either using REST/XML or using Sockets. For faster communication, sockets are used, however, added responsibility of security and stable socket connectivity will be crucial while dealing with socket based communication.