ContribsGH-A
The third way to implement a REST-API in Scala. Asynchronous version using Akka.

  • accumulating the contributions of the repositories (requested to the actors associated with the repositories of the organization),
  • “returning” (applying the tell pattern) the accumulated contributions.
  • repos_M , a map of repositories and references to their corresponding ContribsGHRepo actors, which “return” (in this case applying the tell pattern instead of the ask pattern) a Listof the Contributors for each repository of the current Organization.
  • reposRemaining , a list of the repositories of the current Organization not yet accumulated in contributorsSoFar.
  • contributorsSoFar, the accumulation of the Contributorsof the repositories of the current Organization (except those still contained in reposRemaining ).
  • building the list using the REST client the first time the message is received,
  • afterwards, returning the previously built list without using the REST client again (the repository actors work in that sense as a cache).

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store