Hi there, Let say we have a node singleton service with a method called doSomething()
Now if we want to call the service from a servlet we can either inject the service in the servlet directly like: MyService service = ignite.services().serviceProxy("myService", "MyService.class", false); service.doSomething(); or create a IgniteCallable and send it to server for execution. For example private class MyServiceCallable implements IgniteCallable { @ServiceResource(serviceName = "myService") private MyService myService; @Override public Object call() throws Exception { return myService.doSomething(); } } getGrid().compute().call(new MyServiceCallable()); Now the second call I know will be sent to the server for execution and the results will be sent back. Question is what is the difference between two and is there any performance cost using the first technique? Just looking for the best approach. Thanks, Luqman -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Calling-service-methods-from-servlets-tp16160.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.