Performance and concurrency of calls into services [message #926453] |
Fri, 28 September 2012 13:14  |
Eclipse User |
|
|
|
We ran into the problem described in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=377198
where our bundle's code calls into a service that is resolved via Gemini Blueprint. The code is multi-threaded and invokes methods on that service often.
In short, the synchronization around service lookups in Gemini Blueprint appears to be a huge, huge bottleneck. At this point we're basically going to have to tell our developers to avoid Gemini Blueprint in many circumstances when it comes to wiring together services and references to those services.
Is there a way around this? Short of resolving the bug (granted, the solution proposed in the bug may not be correct), what is the recommended way to go?
Thanks again,
rich
|
|
|
|
|
|
Re: Performance and concurrency of calls into services [message #930900 is a reply to message #930300] |
Tue, 02 October 2012 14:48  |
Eclipse User |
|
|
|
I went from programmatically dealing with services directly to Blueprint services, so never delved into Declarative Services. Lemme see if I understand what you're suggesting.
Given: bundle A consumes service X provided by bundle B:
Would I just need to change the way that bundle B declares service X (and not change bundle A at all, which would still use Blueprint)?
or...
Would I need to (also) change the way that bundle A is wired to service X?
That is, do we need to provide *and* consume through Declarative Services in order to avoid the synchronization?
|
|
|
Powered by
FUDForum. Page generated in 0.08209 seconds