On Thu, Jan 16, 2014 at 9:30 PM, Isuru Haththotuwa <[email protected]> wrote:
> Hi Devs,
>
> This is to discuss $subject.
>
> One approach is to use a git hook configured in the repository as an
> eventing mechanism [1]. Here, when the repository receives an git push, an
> event will be fired and we can use this to get notifications that there is
> an update. Currently, user interaction with Stratos is done through a Rest
> API. We can use the same mechanism to receive events from the repository.
> However, in this approach we would need to handle how to authenticate the
> event which is received from the external repository.
>
> Another approach is to use a task in the cartridge agent itself to run
> periodically and check for updates in the git repository. This approach is
> much simpler.
>
> WDYT?

But the question would be how often the artifacts gets updated? If it
is frequent then periodic check seems to be good. If not, considering
performance, an event driven approach could be the option.

How about having both the options and allow users to decide on which
they want to use?

>
>
> [1]. http://developer.github.com/v3/repos/hooks/
>
> --
> Thanks and Regards,
>
> Isuru H.
> +94 716 358 048
>
>

Reply via email to