I did a similar thing in the past, however we were able to not poll, by
using https://git-scm.com/book/gr/v2/Customizing-Git-Git-Hooks on the
server - sure you can't do that? If it's a hosted repo perhaps they provide
other hooks?

In general though - the question is how many processes doing fetching at
the same time do you want.
I think per server likely makes sense, though with a limit how many at the
same time can issue the git commands - (modeled as actors again most likely)

-- 
Konrad `ktoso` Malawski
Akka <http://akka.io> @ Lightbend <http://lightbend.com>

On 22 May 2017 at 16:11:29, gervais.b ([email protected]) wrote:

Hi there,

I'm going to write a "*commit tracker*" that will follow and a source code
commit from our Git server trough the build until the static analysis. The
goal is to display and update a message like "Commit xyz received, (delay)
and build succesfully, (delay) and incerase quality of 1%".
Sadly I have to poll either the build server and the static analysis to
know when a result is available.


My question is. Knwong that I have to poll the server, is it better to
create on actor per server and send them a message like 'GetStatus'. Or one
actor per commit that will continually send messages to the servers until
it get result ?

Thanks

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
"Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to