#//# -------------------------------------------------------------------------------------- #//# Created using Sequence Diagram for Mac #//# https://www.macsequencediagram.com #//# https://itunes.apple.com/gb/app/sequence-diagram/id1195426709?mt=12 #//# -------------------------------------------------------------------------------------- title "3P(Product Page Parser) API " participant User as user participant kkspider_API as front participant kkspider_ERP_DB as db participant Elastic_DB as elastic participant kkscrap_API as back participant Mailer as mailer activate front activate back user->front: Domain URL front->back: request solution-type-get\n with domain URL back->back: get solution/theme type\n with URL main page html alt [if it is imposible to find solution/theme type from existing function] back->mailer: send error mail\n to admin/developer/user back->front: respose 605 with {error message} back->front: if NOT reponse 200\n {solution type and theme(skin) code} end front->db: save solution type for thr domain URL loop [ for until finished ] front->front: find all URIs from given website front->front: delete URIs if pages are\n NOT product page db->front: read URI record front->db: create or update URI record\n after cheching if exists or is updated end front->back: request product-page-parse\n with{solutin type and URI array} back->back: parse all URI for product page alt [if it is imposible to parse from existing function] back->mailer: send error mail\n to admin/developer/user back->front: respose 605 with {error message} back->front: if NOT reponse 200\n normalized json contents front->elastic: save json contents in Elastic DB deactivate back deactivate front deactivate member