I am planning on writing an RPC server in Java. The server should accept incoming RPCs - possibly through HTTP - and respond to them. Simple enough material. Support for "long polls" or "freezing" RPCs is not required, therefore, a model with a stream per request should be quite adequate.
If I wrote this in Python, I would probably use a framework like twisted. In C, something like glibc. In each case, the infrastructure provides the implementation of the main core of the βselect loopβ IO processing and the call of higher-level constructions that are associated with it, which ultimately leads to the fact that my application is called for events such as receiving RPC.
For a long time I wrote something significant in Java, so I donβt know what a modern solution or proposed solutions for these kinds of things are. Perhaps there are even parts of the standard library that I can easily use for this. So my question is to StackOverflow: what framework is there that is suitable for such a task?
Please note that although I can use HTTP for RPC, this is not a web application, and therefore the web framework is not suitable.
source share