RSocket protocol is an asynchronous binary protocol, which is better suited for communication in distributed applications. The currently most used HTTP/1.1 protocol with the use of REST architectural style only offers request/response communication that is not always the best way to communicate, which is why there is a need for a protocol which offers a better way to communicate. This thesis presents the new RSocket protocol, compares it to the existing HTTP protocol and questions its advantages for use in microservices. A microservice application has been developed to compare protocols RSocket and HTTP. The result of this comparison shows that the RSocket protocol is faster and more efficient for communication between microservices. The reasons for this are: the use of persistent connection, a more efficient caching of requests and a smaller frame header.
|