incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From conflue...@apache.org
Subject [CONF] Apache Sling > Observation usage patterns
Date Fri, 03 May 2013 11:35:00 GMT
<html>
<head>
    <base href="https://cwiki.apache.org/confluence">
            <link rel="stylesheet" href="/confluence/s/2042/9/1/_/styles/combined.css?spaceKey=SLING&amp;forWysiwyg=true"
type="text/css">
    </head>
<body style="background: white;" bgcolor="white" class="email-body">
<div id="pageContent">
<div id="notificationFormat">
<div class="wiki-content">
<div class="email">
    <h2><a href="https://cwiki.apache.org/confluence/display/SLING/Observation+usage+patterns?focusedCommentId=31820646#comment-31820646">Observation
usage patterns</a></h2>
        <h4>Page
        <b>comment added</b> by              <a href="https://cwiki.apache.org/confluence/display/~fmeschbe">Felix
Meschberger</a>
    </h4>
    <br/>
    <div class="notificationGreySide">
       <p>Just a minor detail on impact: OSGi events are dispatched fully asynchronous
and thus don't block event processing in the repository.</p>
    </div>

                <div style="border-bottom: 1px solid #ddd; padding: 10px 20px 7px 20px;">
        <strong>In reply to a comment by <a href="/confluence/display/~bdelacretaz"
                          class="url fn confluence-userlink" data-username="bdelacretaz"
                   >Bertrand Delacretaz</a>:</strong><br/>
        <p>If by "this" you mean the tentative API, then agreed, I'll remove it.</p>

<p>The interesting thing is that a number of the patterns mentioned here might not need
observation at all, a form of slow polling would work for most of them and be more scalable.</p>

<p>As you say, the Sling JcrResourceListener makes it easy to listen to specific events,
but to support that it has to blindly relay a lot of JCR events to the OSGi event queue, which
might also hinder scalability. I'll run some tests with Oak to measure what the actual impact
is.</p>
        </div>
    
    <div id="commentsSection" class="wiki-content pageSection">
       <div style="float: right;">
            <a href="https://cwiki.apache.org/confluence/users/viewnotifications.action"
class="grey">Change Notification Preferences</a>
       </div>
       <a href="https://cwiki.apache.org/confluence/display/SLING/Observation+usage+patterns?focusedCommentId=31820646#comment-31820646">View
Online</a>
              |
       <a id="reply-31820646" href="https://cwiki.apache.org/confluence/display/SLING/Observation+usage+patterns?replyToComment=31820646#comment-31820646">Reply
To This</a>
           </div>

</div>
</div>
</div>
</div>
</body>
</html>

Mime
View raw message