Skip to content

Implement Monitoring to Track Twitter API Usage #75

@jkbrooks

Description

@jkbrooks

Ticket 5: Rate Limit Management and Monitoring

Ticket 5.1: Implement Monitoring to Track Twitter API Usage

Description:
Develop backend logic to monitor and track Twitter API usage on both per-user and per-app levels to prevent rate limits from being exceeded. This will include real-time tracking and updates to ensure optimal usage without interruption.

Requirements:

  • Integrate API usage tracking within the Twitter posting service to record API calls made by each user and the app.
  • Implement a mechanism to monitor usage against Twitter's rate limits for the pro plan (100 requests/15 mins per user, 10,000 requests/24 hours per app) and basic plan (100 requests/24 hours per user, 1,667 requests/24 hours per app).
  • Store usage data in a database for analysis and tracking.

Acceptance Criteria:

  • Backend service accurately tracks and logs each API request for both per-user and per-app levels.
  • Usage data is updated in real-time and stored in a database.
  • Clear documentation on where and how the monitoring logic is integrated.

Related, for later #74 but not for this ticket

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions