3 ms·
Could you point me to some information on why RMI is a bad mistake? (Genuine question.)
by adrianmsmith 8y ago
Could you point me to some information on why RMI is a bad mistake? (Genuine question.)
- willtim 8y agoIn OOP, objects have identity and state, having a remote endpoint with both these attributes is undesirable. IIRC, RMI also encourages one to abstract over the network, which can lead to very fine-grained, brittle and possibly insecure communication. This is somewhat ironic given that Sun itself authored "The fallacies of distributed computing".
- jnwatson 8y agoRMI (and similar technologies like CORBA) is a “mistake” in today’s world because it makes every public method an attack surface. It also hides important details that the client really can’t not deal with, namely network issues. I put mistake in quotes because there are situations where RMI (and Java serialization) work fine: trusted, reliable networks like cluster or grid computing.