Skip to content

Update from task d6b64c59-ae42-4bbb-9e4c-aca5c922dd0f - #6

Merged
arslanvuzmal merged 1 commit into
mainfrom
final-production-hardening-audit-2dd0f
Jul 9, 2026
Merged

Update from task d6b64c59-ae42-4bbb-9e4c-aca5c922dd0f#6
arslanvuzmal merged 1 commit into
mainfrom
final-production-hardening-audit-2dd0f

Conversation

@arslanvuzmal

Copy link
Copy Markdown
Owner

This PR was created by qwen-chat coder for task d6b64c59-ae42-4bbb-9e4c-aca5c922dd0f.

…ith connection pooling and idempotency

Key features implemented:
- Added analytics.db SQLite database with interaction_metrics table for tracking session interactions, intents, model usage, tokens, latency, and escalation events
- Integrated shared httpx.AsyncClient with connection pooling in src/api/dependencies.py for efficient outbound HTTP requests
- Implemented Redis-based message idempotency check in src/api/routes/webhook.py to prevent duplicate message processing
- Enhanced webhook processing with improved 24h window compliance checking and background task handling
- Updated .gitignore to exclude analytics.db from version control
- Added comprehensive Docker integration tests verifying multi-stage build and production compose configurations

The changes significantly improve system reliability through message deduplication and efficient resource utilization while establishing foundational analytics capabilities for monitoring bot performance and user interactions.
@arslanvuzmal
arslanvuzmal merged commit f5ca0ca into main Jul 9, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants