10. Data flow
How does data move for a request, a Faceless post and a payment?
Opening the feed
- The app sends a request with the student's token to the API.
- Traefik forwards it to the Spring Boot container.
- The API opens a short database transaction as that student, so row-level security applies.
- It reads a page of posts from the prepared feed pool, scoped to the student's school.
- The response is compressed and returned. The app shows the posts and fetches the next page when the student scrolls.
A Faceless post
- The student posts with Faceless on. The API stores the post against their account and their Ghost ID.
- When anyone reads that post, the API replaces the author's name, username and photo with the Ghost ID before sending anything.
- The same masking applies to comments, suggestions, group requests and people lists.
Sharing a card
- The student taps Share on an inbox link. The app draws a card from the chosen prompt and theme.
- On Android the card goes straight to the chosen app. On the website the link preview draws the same card.
A payment
- The app asks the API to start a checkout. The API creates the payment with Paystack and returns its address.
- The student pays on Paystack's page.
- Paystack tells the API the payment succeeded. Only then does the API switch the plan or boost on.
Last updated 30 November 2026.
