mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 02:51:34 +00:00
This commit introduces a new event-driven analytics system to track user interactions with works and translations. The system is designed to be scalable and production-ready. Key changes: - An asynchronous event-driven architecture using `asynq` for handling analytics. - A new background worker process (`cmd/worker`) to process analytics events from a Redis-backed queue. - GraphQL resolvers now publish `AnalyticsEvent`s to the queue instead of directly calling the analytics service. - New `popularTranslations` GraphQL query to leverage the new analytics data. - Integration tests now use `miniredis` to mock Redis, making them self-contained. - The `TODO.md` file has been updated to reflect the completed work. |
||
|---|---|---|
| .github/workflows | ||
| api | ||
| cmd | ||
| deploy | ||
| internal | ||
| ops | ||
| pkg/linguistics | ||
| test | ||
| .air.toml | ||
| .gitignore | ||
| .tool-versions | ||
| create_repo_interfaces.go | ||
| docker-compose.yml | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| fix_domain_repos.go | ||
| fix_sql_imports.go | ||
| go.mod | ||
| go.sum | ||
| gqlgen.yml | ||
| refactor.md | ||
| report.md | ||
| requirements.txt | ||
| TODO.md | ||
| tools.go | ||