[ 
https://issues.apache.org/jira/browse/FELIX-1141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12855313#action_12855313
 ] 

Valentin Valchev commented on FELIX-1141:
-----------------------------------------

My experience showed that using such "back-channel" is performance drawback. 
Yes, the applications is more responsible but scalability lowers. We used 
similar approach in some of ProSyst web applications but a "back-channel" means 
a "thread".

We mostly target embedded devices, so we typically limit active threads (pool) 
to 10. But if few web clients open a channel, this means, that 3 threads from 
the pool are non-stop occupied and never released.

Typically a browser opens 4 connection for web content and images. So it 
becomes really slowly, as HTTP wait more to obtain free threads.

----
IMHO a better optimization is to update how these request are handled. Now 
"start", "stop"... etc performs the action, and then renders the whole page 
again, which means:
- more data transferred
- more rendering operation
- less responsive UI

However, there are situations that no rendering is required. As example: start, 
stop throws exception. This means that the state will not be changed and no 
rendering required.

So we can simplify the code to handle only simple requests. Start, stop, etc 
action will not render Bundle JSON data. If the action succeeded, then another 
AJAX call will be posted to obtain the bundle data.

> Provide feedback for operations
> -------------------------------
>
>                 Key: FELIX-1141
>                 URL: https://issues.apache.org/jira/browse/FELIX-1141
>             Project: Felix
>          Issue Type: Improvement
>          Components: Web Console
>            Reporter: Felix Meschberger
>         Attachments: bundle-operation-error-feedback.patch
>
>
> Currently the Web Console does provide almost no adequate feedback for 
> operations like bundle installation, bundle start, configuration save, etc, 
> etc. We need a way to provide such feedback to the client. This is a bit more 
> tricky since many operations actually are executed in the background like 
> actual bundle operations.
> I see this issue as a broadening of the feedback request in FELIX-1061

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to