Skip to content

Instantly share code, notes, and snippets.

@povilas
Created August 24, 2016 11:15
Show Gist options
  • Save povilas/4c1152766a5f67abc865c4108418288d to your computer and use it in GitHub Desktop.
Save povilas/4c1152766a5f67abc865c4108418288d to your computer and use it in GitHub Desktop.
@startuml
Scheduler --> Updater: do your job
Updater -> EmailQueue: get next email for update
EmailQueue --> EmailMeta: sync
EmailMeta -> CandidateList: emails that I don't have
EmailMeta <- CandidateList: emails
EmailMeta <- EmailMeta: update myself
EmailQueue -> EmailMeta: filter by some logic
EmailQueue <- EmailMeta: email
EmailQueue -> Updater: email
Updater -> 360Social: get info about email
360Social -> Updater: results
Updater --> EmailMeta: update: inc req count, last req time
Updater --> Log: log results
Updater --> Candidate: update email picture
...
...sometime later...
...
360Social --> Webhook: more results about email
Webhook --> EmailMeta: update: last results time
Webhook --> Log: log results
Webhook --> Candidate: update email picture
@enduml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment