Skip to content

Feature Request: Batch heartbeat processing for large agent networks #106

Description

@newffnow

Use Case\n\nAs the Beacon network grows to hundreds/thousands of agents, individual heartbeat processing could become a bottleneck.\n\n## Proposed Feature\n\nAdd support for batched heartbeat submission:\n\npython\n# Current: One API call per heartbeat\nbeacon.heartbeat(agent_id='agent_1')\nbeacon.heartbeat(agent_id='agent_2')\n\n# Proposed: Batch multiple heartbeats\nbeacon.batch_heartbeat([\n {'agent_id': 'agent_1', 'status': 'active'},\n {'agent_id': 'agent_2', 'status': 'idle'},\n {'agent_id': 'agent_3', 'status': 'busy'}\n])\n\n\n## Benefits\n\n1. Reduced API overhead - Single network round-trip for multiple agents\n2. Agent coordination - Useful for multi-agent systems reporting together\n3. Scalability - Better support for large deployments\n\n## Implementation Notes\n\n- Could use existing Ed25519 signing (sign the batch)\n- Backward compatible (single heartbeats still work)\n- Optional feature (opt-in)\n\nThoughts? ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions