In our company, we use spring boot, microservices, spring cloud, etc ... We are happy with this infrastructure, but I still have some problems: we use rest as a communication protocol, and even if I find it wonderful, I still think that we could find something better. With a rest:
- you need to use client and server (restcontroller)
- you need to know the server
URI
, method http ( POST, GET, PUT,...
) - you need to know where the parameters go (body, querystring)
- ....
Don't you think it would be much easier if we had something like RMI? I know that this is a rather old technology (and it does not depend on the language), but it made life easier (you just need an interface and its implementation).
Searching around, I found some interesting projects, such as fake clients or spring cloud stream, but none of them seem like a silver bullet.
What do you think of this topic? Is this a problem you feel? If so, how do you approach him?
Thanks in advance.
source share