v6_api backend: modules and processes

v6_api backend: modules and processes An architecture diagram generated by Archify. Browser / c2c_ui · web and mobile clients · Architecture component Browser / c2c_ui web and mobile clients c2c_tracking · shares the API's JWTs · Outside the API c2c_tracking shares the API's JWTs SNGM (pro-montagne) · SSO partner service · Outside the API SNGM (pro-montagne) SSO partner service HAProxy + Varnish · api.camptocamp.org · Architecture component HAProxy + Varnish api.camptocamp.org gunicorn · UvicornWorker x3 · asgi:app · Architecture component · api0..2 gunicorn UvicornWorker x3 · asgi:app api0..2 FastAPI app (web/) · CORS → token → routes · Architecture component FastAPI app (web/) CORS → token → routes auth & roles · JWT HS256 · token hashes · Architecture component auth & roles JWT HS256 · token hashes views/ · documents · users · map · search · Architecture component views/ documents · users · map · search models/ · SQLAlchemy 2.1 · GeoAlchemy2 · Architecture component models/ SQLAlchemy 2.1 · GeoAlchemy2 PostgreSQL + PostGIS · guidebook · users · sympa · Architecture component PostgreSQL + PostGIS guidebook · users · sympa Elasticsearch · client 2.4 · ES 8 on a branch · Architecture component Elasticsearch client 2.4 · ES 8 on a branch Redis · cache · queue · jobs · rate · Architecture component Redis cache · queue · jobs · rate syncer · kombu consumer → ES · Architecture component · workers VM syncer kombu consumer → ES workers VM scheduler · APScheduler purge jobs · Architecture component · workers VM scheduler APScheduler purge jobs workers VM SMTP relay · account emails · Outside the API SMTP relay account emails c2c_images service · upload, resize, S3 · Outside the API c2c_images service upload, resize, S3 Discourse forum · SSO · comment topics · Outside the API Discourse forum SSO · comment topics Navitia · public transport stops · Outside the API Navitia public transport stops HTTPS GET /users/token POST /sso_sync :8080 ASGI verify JWT handlers ORM SQL search cache, notify queue bulk index changed docs purge emails publish SSO, topics on save Outside the API Legend Backend Database Cloud Security External