cronjob-golang-API.msd 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. #//# --------------------------------------------------------------------------------------
  2. #//# Created using Sequence Diagram for Mac
  3. #//# https://www.macsequencediagram.com
  4. #//# https://itunes.apple.com/gb/app/sequence-diagram/id1195426709?mt=12
  5. #//# --------------------------------------------------------------------------------------
  6. title "How to Run CronJob by Golang API"
  7. participant Backend_CronJobs as cron
  8. participant Frontend_api23_cronjob as frontend
  9. participant Backend_API as backend
  10. participant ERP_DB as erpdb
  11. #participant MemoryDB as bunt_db
  12. activate cron
  13. cron->cron: awake cronjob at 03:00AM
  14. activate frontend
  15. cron->frontend: request /api23-cronjobs
  16. activate backend
  17. frontend->backend: request /member-pare
  18. backend->frontend: response 200 %{member-page}
  19. deactivate backend
  20. frontend->frontend: send dormant schedule mail
  21. frontend->frontend: get failed-mail member page
  22. activate backend
  23. frontend->backend: request /member-act
  24. backend->frontend : response {id list}
  25. deactivate backend
  26. deactivate frontend