Files
goplt/docs/content/stories/phase5/README.md

2.3 KiB

Phase 5: Infrastructure Adapters

Overview

Implement infrastructure adapters for caching (Redis), event bus (Kafka), background job scheduling (asynq), and multi-tenancy support.

Tasks

5.1 Cache Implementation

5.2 Event Bus Implementation

5.3 Background Job Scheduler

5.4 Multi-tenancy Support

Deliverables Checklist

  • Redis cache adapter implemented
  • Event bus supports in-process and Kafka
  • Background job scheduler with asynq
  • Cron job support
  • Multi-tenancy resolver and middleware
  • Database queries scoped by tenant

Acceptance Criteria

  • Cache operations work with Redis fallback
  • Events can be published to Kafka
  • Background jobs can be scheduled
  • Cron jobs run on schedule
  • Tenant isolation works for database queries
  • Middleware extracts tenant from request