For the life of me, I never understood, nor will ever understand, why people think making RPCs is easier or leads to better design than making normal function calls ("split your code into microservices, it will make your code modular, smaller and easier to understand!").
There are legitimate reasons to put a network between one piece of code and another, but "modularity" is not one of them.
There are legitimate reasons to put a network between one piece of code and another, but "modularity" is not one of them.