Webhook
Webhook
Un webhook es una devolución de llamada HTTP enviada cuando ocurre un evento. Le avisa a otro sistema para que reaccione.
Otro ejemplo
Un servicio de pagos envía un evento payment.succeeded firmado al servicio de pedidos.
Partes principales
- 01Originating request
- 02Resolution or processing hop
- 03Response, timing, and failure
Úsalo cuando
Firma cada carga útil. Haz que el manejo sea idempotente, reintenta los envíos fallidos y conserva registros duraderos de eventos.
No lo uses cuando
Nunca asumas que los eventos llegan en orden o solo una vez. Nunca confíes en un remitente que no hayas verificado.
Nombre usado en código
POST callback + signature Antes de lanzarlo
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with Webhook (Webhook). User context: Un servicio de pagos envía un evento payment.succeeded firmado al servicio de pedidos. Technical concept or control: Webhook (Webhook). Why it fits: Firma cada carga útil. Haz que el manejo sea idempotente, reintenta los envíos fallidos y conserva registros duraderos de eventos. Do not use it when: Nunca asumas que los eventos llegan en orden o solo una vez. Nunca confíes en un remitente que no hayas verificado. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Ningún estándar oficial único controla todo el término. Su significado puede cambiar según equipos, plataformas o marcos. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Revisa esta petición
Review how Webhook (Webhook) is used now. Definition: Un webhook es una devolución de llamada HTTP enviada cuando ocurre un evento. Le avisa a otro sistema para que reaccione. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.