How to improve communication between microservices

Viewed 3682

In our company we use spring boot, microservices, spring cloud and so on... We are happy with this infrastructure, but I still have some concerns: we use rest as comunication protocoll and even if a I find it great, I still think that we could find something better. With rest:

  • you need to use a client and a server (restcontroller)
  • you need to know the server URI, the http method (POST, GET, PUT,...)
  • you need know where params go (body, querystring)
  • ....

Don't you think It would be much easier if we had something like RMI? I know it's a quite old technology(and it's not language independent), but it made life easier (you just need an interface and its implementation).

Searching around, I found some interesting projects like feign clients or spring cloud stream, but none of them seem to be the silver bullet.

What do you think about this topic? Is that a problem that you feel? If so, how do you approach it?

Thanks in advance.

3 Answers
Related