5 ms·
What does REST have to do with OSGi? I appreciate OSGi quite a bit, bit how does one migrate a module to a microservice without changing the API surface to refl
by ysleepy 7y ago
What does REST have to do with OSGi? I appreciate OSGi quite a bit, bit how does one migrate a module to a microservice without changing the API surface to reflect new error modes that come with networking and missing transactions?
Java RMI, CORBA etc. have failed. Is OSGi somehow an RPC mechanism?
- preordained 7y agoI'd call the same interface but behind that is a layer that talks to REST and if there is some networking error that's a runtime exception. You are probably bringing a DB at that point so I don't know if you need explicit transaction logic. So you could have the service in the same JVM but then cut it out and make it a microservice just by adding a REST "proxy".
- deleted 7y ago[deleted]
- LoSboccacc 7y agoit's a local call mechanism, you can't get more nineteen ninety nine than that. why? to solve the hypothetical issue of needing two services that depends on different version of the same libraries within the same jvm everything else it does you could do better with dependency injection and locator/proxy patterns