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 replication subsystem detects the changes and generates add/delete events

3) You need to make HTTP requests with custom headers/payload to an
external system to signal the changes

The way we usually do things in Sling, for 3) I would use an OSGi
whiteboard pattern where you register a service that declares that
it's interested in add/delete events for certain content paths. The
replication subsystem then calls all such services when
add/delete/other events occur.

Would the replication subsystem support this?

-Bertrand

Reply via email to