CNA Astro
Learning management system (LMS) for students and teachers, a Django backend with a TypeScript frontend. Not on the Kafka bus yet; its producers and consumers will be documented as they are designed.
Overview
cna-astro is the CNA learning management system: a Django backend in backend/ and a TypeScript frontend in frontend/. It has no Kafka producers or consumers today.
It does not share the TypeScript event framework of the other applications (api/app/events/lib/). Its own Kafka layer lives in backend/services/kafka/ and is off by default (KAFKA_ENABLED):
- a consumer is an
EventHandlersubclass bound to one topic, validating the message body with a Django REST frameworkpayload_serializer, with retry topics and a dead-letter topic; - handlers are discovered from a
kafka/handlers.pymodule in each Django app; none exists yet; - its own metadata travels in
astro.*headers (event id, occurrence, retries).
Messages whose contract owner is ASTRO follow docs/modelling/04-adding-a-message.md like any other: channel per topic, entity per aggregate root, sends and receives wired here.
Messages
Messages for this service
Sends messages (0)
Quickly find the message you need by searching for the name, type, or summary.| Name | Version | Type | Summary |
|---|---|---|---|
| No messages found | |||
Receives messages (2)
Quickly find the message you need by searching for the name, type, or summary.Kafka consumers
None yet. The receives above are a proposal from the CNA One team: a consumer of the Person (Kafka topic)Person (Kafka topic)Channelv1.0.0Kafka topic for the Person aggregate of CNA One - the civil identity of a person, the access CNA One grants them in astr...Ownercna-platformView docs topic that keeps cna-astro’s users in sync with the persons of CNA One. See Person CreatedPerson CreatedEventv1.0.0A person was registered in CNA One: the civil data, the access cna-one grants them in astro, per franchise, and the stud...Ownercna-platformSchemaMapView docs for the expected behaviour, what cna-astro adapts and the open questions.
The handler of that topic has to read the CNA envelope: a message body is { payload, metadata }, not the payload alone, so its serializer validates the envelope and it tells Person CreatedPerson CreatedEventv1.0.0A person was registered in CNA One: the civil data, the access cna-one grants them in astro, per franchise, and the stud...Ownercna-platformSchemaMapView docs from Person UpdatedPerson UpdatedEventv1.0.0The civil data of a person, the access cna-one grants them in astro or the students they answer for changed, including l...Ownercna-platformSchemaMapView docs by metadata.event. CNA messages carry no astro.* headers.
Custom properties
| Property | Value |
|---|---|
| Runtimex-runtime | Django + Django REST framework (backend/), TypeScript frontend (frontend/), confluent-kafka |
| Statusx-status | not on Kafka yet |