Re: [replication] Whiteboard pattern for replication events?

2014-01-09 Thread Tommaso Teofili
interesting stuff, thanks Chetan for bringing that to the table, for SLING-3309 I think Marius patch is ok and we could stick to that till we have WebHooks in place. Tommaso 2014/1/8 Chetan Mehrotra chetan.mehro...@gmail.com I think the requirement here are subset of what is required in

[replication] Whiteboard pattern for replication events?

2014-01-08 Thread Bertrand Delacretaz
Hi, This is about SLING-3309 - I'm wondering if the custom cache flushing service that Marius needs should really be in Sling, or if that should rather be a custom service that he implements outside of Sling. IIUC the scenario is as follows: 1) Changes are made to Sling content 2) The

Re: [replication] Whiteboard pattern for replication events?

2014-01-08 Thread Tommaso Teofili
Hi Bertrand, I think this scenario could be easily supported by Sling Replication, one could fire replication related events [1] via ReplicationEventFactory [2] once a replication request is received by a replication agent (and / or in other scenarios). The problem I see here, as far as I

Re: [replication] Whiteboard pattern for replication events?

2014-01-08 Thread Bertrand Delacretaz
Hi Tommaso, On Wed, Jan 8, 2014 at 10:17 AM, Tommaso Teofili tommaso.teof...@gmail.com wrote: ...The problem I see here, as far as I understood eventing, is related to the fact that events are not guaranteed to be consumed in the exact same order they were generated and I think this would be a

RE: [replication] Whiteboard pattern for replication events?

2014-01-08 Thread Marius Petria
-Original Message- From: Bertrand Delacretaz [mailto:bdelacre...@apache.org] Sent: Wednesday, January 08, 2014 11:31 AM To: dev Subject: Re: [replication] Whiteboard pattern for replication events? Hi Tommaso, On Wed, Jan 8, 2014 at 10:17 AM, Tommaso Teofili tommaso.teof...@gmail.com wrote

Re: [replication] Whiteboard pattern for replication events?

2014-01-08 Thread Bertrand Delacretaz
Hi Marius, On Wed, Jan 8, 2014 at 10:49 AM, Marius Petria mpet...@adobe.com wrote: ...The intended patch for SLING-3309 is generic, meaning that it just allows customization of the HTTP payload... Ok, I guess you need to show us that patch then ;-) -Bertrand

Re: [replication] Whiteboard pattern for replication events?

2014-01-08 Thread Chetan Mehrotra
I think the requirement here are subset of what is required in SLING-3292[1]. So should be addressed with proper Web Hook support in Sling [1] https://issues.apache.org/jira/browse/SLING-3292 Chetan Mehrotra On Wed, Jan 8, 2014 at 3:26 PM, Bertrand Delacretaz bdelacre...@apache.org wrote: Hi